RetouchPRO

Go Back   RetouchPRO > Tools > Software
Register Blogs FAQ Site Nav Search Today's Posts Mark Forums Read


Software Photoshop, Lightroom, Paintshop Pro, Painter, etc., and all their various plugins. Of course, you can also discuss all other programs, as well.

Java Class Files ???

Reply
 
Thread Tools
  #1  
Old 10-28-2005, 01:31 PM
Cameraken's Avatar
Cameraken Cameraken is offline
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,158
Java Class Files ???

Hi Everyone.

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.

Thanks.

Ken
Reply With Quote top
  #2  
Old 10-28-2005, 06:48 PM
DannyRaphael's Avatar
DannyRaphael DannyRaphael is offline
Moderator
 
Join Date: Mar 2002
Location: Near Seattle, Washington, USA
Posts: 6,300
Quote:
Originally Posted by Cameraken
Hi Everyone.

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.

Thanks.

Ken
Ken:

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.
Reply With Quote top
  #3  
Old 10-28-2005, 07:22 PM
kschulz's Avatar
kschulz kschulz is offline
Senior Member
 
Join Date: Oct 2004
Location: Cincinnati, Ohio
Posts: 138
Hi Ken,

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:

http://www.java.com/en/download/manual.jsp

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.

- Kurt
Reply With Quote top
  #4  
Old 10-29-2005, 03:14 PM
Cameraken's Avatar
Cameraken Cameraken is offline
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,158
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.

Kurt.
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.

http://www.cs.utah.edu/npr/ArtisticVision/


Thanks for your help

Ken
Reply With Quote top
  #5  
Old 10-29-2005, 07:59 PM
realaqu's Avatar
realaqu realaqu is offline
Senior Member
 
Join Date: Feb 2005
Posts: 109
hi, Ken

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

good luck

realaqu
Reply With Quote top
  #6  
Old 10-30-2005, 01:18 AM
kschulz's Avatar
kschulz kschulz is offline
Senior Member
 
Join Date: Oct 2004
Location: Cincinnati, Ohio
Posts: 138
Ken,

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...

- Kurt
Attached Images
File Type: jpg scrncap-0.jpg (56.9 KB, 2 views)
File Type: jpg scrncap-1.jpg (67.4 KB, 6 views)
File Type: jpg scrncap-2.jpg (67.6 KB, 3 views)
File Type: jpg scrncap-3.jpg (83.6 KB, 3 views)

Last edited by kschulz; 10-30-2005 at 01:28 AM.
Reply With Quote top
  #7  
Old 10-30-2005, 01:40 AM
kschulz's Avatar
kschulz kschulz is offline
Senior Member
 
Join Date: Oct 2004
Location: Cincinnati, Ohio
Posts: 138
Hmm, looks like 192x166 is the largest image area it will work with. Still very cool...
Reply With Quote top
  #8  
Old 10-30-2005, 05:08 AM
Cameraken's Avatar
Cameraken Cameraken is offline
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,158
Kurt.

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.

Ken
Attached Images
File Type: jpg Portrait-Bara_AV.jpg (99.3 KB, 10 views)
Reply With Quote top
  #9  
Old 10-30-2005, 06:03 AM
Doug Nelson's Avatar
Doug Nelson Doug Nelson is offline
Janitor
 
Join Date: Aug 2001
Posts: 7,068
Blog Entries: 21
I think your request would mean more than mine, since you've actually tried it. Just email him this thread URL.
Reply With Quote top
  #10  
Old 10-30-2005, 08:24 AM
Cameraken's Avatar
Cameraken Cameraken is offline
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,158
'email him this thread URL'
Great Idea Doug. Iíll Do that.

Iíve created a Bat file to save the typing.

Open Notepad
Paste this in

cd \temp
set CLASSPATH=c:\temp
java Artistic_Vision

Then save on the desktop as ArtisticVision.BAT
This will work with Kurtís Suggested Directory.


Ken
Reply With Quote top
Reply

  RetouchPRO > Tools > Software


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
jpeg files 00110 Input/Output/Workflow 2 09-13-2006 08:56 PM
Panorama Maker and Canon CS2 Files mikelouw Software 0 07-03-2006 03:06 PM
Java & PHP jeaniesa Your Website 8 01-18-2003 05:00 PM
Online Class Doug Nelson Website Feedback 0 08-08-2001 01:03 PM


All times are GMT -6. The time now is 04:19 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2016 Doug Nelson. All Rights Reserved