The Mudcat Café TM
Thread #135614   Message #3093758
Posted By: GUEST,Grishka
12-Feb-11 - 09:11 AM
Thread Name: Tech: CopyUnicode: Create any char
Subject: RE: Tech: CopyUnicode: Create any char
The "HTML" checkbox is initially checked (selected) and focused; if you (accidentally or not) press the space bar before clicking elsewhere, it will be deselected.

How to make a "jar" on a Windows system without knowing Java, NetBeans, or Eclipse:
  1. Download the JDK and install it without changing the preset target directory

  2. Copy the above source code from the browser window to a plain ASCII file named ClipUnicode.java, placed in an empty folder

  3. In the same folder, create another text file named something.bat containing the commands below

  4. Double click it

  5. A third file named ClipUnicode.jar will appear. move, copy or upload it where you want it, delete the other two files if no longer needed

  6. Uninstall the JDK if no longer needed.

The contents of something.bat are as follows - important: you may have to change the two occurences of "jdk1.6.0_23" according to your version.

mkdir Classes
"%ProgramFiles%\java\jdk1.6.0_23\bin\javac" -d Classes ClipUnicode.java

echo Manifest-Version: 1.0> manifest.mf
echo Main-Class: ClipUnicode>> manifest.mf
echo Class-Path: >> manifest.mf

cd Classes
"%ProgramFiles%\java\jdk1.6.0_23\bin\jar" cmf ..\manifest.mf ..\ClipUnicode.jar *

cd ..
del Classes\*.class
rd Classes
del manifest.mf