Java Class Files ???
I have found some software/Filters that I wanted to try. It downloaded as a .tar.gz file and said it was a Java file.
Iíve extracted the files and now I have a bunch of *.class files.
Can anyone please tell me what to do with these files?
I have a PC with Java installed.
In case no one else replies with a definitive answer, check out this site: http://www.ps-scripts.com
Some folks who are very knowledgeable in this area hang out there.
Class files are generated by a Java compiler after it has processed Java source code files. Class files can be loaded and executed by a Java Virtual Machine (JVM). You can download and install a JVM for Windows (the Java Runtime Environment) from Sun Microsystems at:
If you already have Java installed on your PC, look for java.exe which is the bytecode (class file) interpreter. It's been a while since I've ventured into Java land, but I believe you can run your classes by executing the Java interpreter from a command line prompt.
You might want to try going to a command line prompt and type "java <enter>" - if the interpreter is found it will print out a list of the command line arguments it supports. The simplest syntax for running a class is something like:
java filename ("filename" = your class file, without the extension)
Sun's web site has tons of info. Hope this helps.
Thanks for your help. But Iíve not got much closer.
Danny. Your link suggests that these files are Photoshop script files.
I found that I had to download the Scripting Plug-In from Adobe as it is not installed in PS7 by default as it is in CS. (Iíve done that)
However the scripts need to be in *.js format not *.class format. And I canít see the answer at PC-Scripts.com.
JS files seem to be text files where these class files are not.
I found java.exe in the jre folder but when I run it I get a DOS box but it closes immediately
I am attaching the link. I think you may both be interested in this as well. I hope it entices you into taking another look at this. It uses Strassmanns algorithm. And segmentation.
Thanks for your help
I think you have to run this class in this way, it may need some arguements, try(assume the class name is Artsomething.class)
java Artsomething example.jpg
Very intriguing link! Unfortunately they provide only the compiled class files - it would be nice to see the actual algorithms in the source code.
Ok, I'm guessing you were trying to run Java using the Windows Run... command. Doing so would open up a command window and then close immediately as you describe. Try the following instead, paying attention to upper and lower case:
1) Extract your class files to a folder (for example "c:\temp")
2) Copy a small jpg file to c:\temp for test purposes. I used a 320x240 sized file since my first attempt with a very large jpg image failed.
3) Using the Windows Run... command, type "cmd" then enter. This will open up a DOS command window.
4) At the command prompt, type "cd \temp" then press the ENTER key.
5) Type "set CLASSPATH=c:\temp" then ENTER.
6) Type "java Artistic_Vision" then ENTER. This will launch the program and give you two Windows as shown in the attached screen caps.
7) Use the File menu to load your test jpg image. It should appear in the Window titled "Picture".
8) Use the Tools and Stereo menus to play with it.
Good luck with it. Time for me to play with it more...
Last edited by kschulz; 10-30-2005 at 12:28 AM.
Thank You So Much.
You got it working.
Unfortunately, as you say, It will only take a small picture and there is no save.
Here I reduced the picture. Applied Artistic_Vision then took a Snapshot
I loaded it back into PS and enlarged it up, then merged it back into the original.
Unfortunately the brush strokes are blurring.
However this is really interesting. Makes you wonder why this algorithm is not in any commercial software.
Perhaps We could persuade Doug or Danny to email Bruce and see if he has taken this any further.
Thanks again for your help.
'email him this thread URL'
Great Idea Doug. Iíll Do that.
Iíve created a Bat file to save the typing.
Paste this in
Then save on the desktop as ArtisticVision.BAT
This will work with Kurtís Suggested Directory.
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Thread||Thread Starter||Forum||Replies||Last Post|
|jpeg files||00110||Input/Output/Workflow||2||09-13-2006 07:56 PM|
|Panorama Maker and Canon CS2 Files||mikelouw||Software||0||07-03-2006 02:06 PM|
|Java & PHP||jeaniesa||Your Website||8||01-18-2003 04:00 PM|
|Online Class||Doug Nelson||Website Feedback||0||08-08-2001 12:03 PM|