No announcement yet.

Java Class Files ???

  • Filter
  • Time
  • Show
Clear All
new posts

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



  • #2
    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.



    In case no one else replies with a definitive answer, check out this site:

    Some folks who are very knowledgeable in this area hang out there.


    • #3
      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:

      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


      • #4
        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
        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



        • #5
          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



          • #6

            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 Files
            Last edited by kschulz; 10-30-2005, 12:28 AM.


            • #7
              Hmm, looks like 192x166 is the largest image area it will work with. Still very cool...


              • #8

                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.

                Attached Files


                • #9
                  I think your request would mean more than mine, since you've actually tried it. Just email him this thread URL.
                  Learn by teaching
                  Take responsibility for learning


                  • #10
                    '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.



                    • #11
                      Kurt. Are you on a MAC? Your display is different to mine. You have got Stereo and I have got Underpainting and Artifact Level (in V1.2)

                      Attached Files


                      • #12
                        Email Sent

                        bgooch *at*
                        Re Artistic Vision.

                        Dear Bruce

                        I am a member of RetouchPro. A forum interested in PhotoArt and we have seen the interesting work you have done on brush strokes.
                        We have started a thread to discuss your work I am sending you a link to the thread hoping that you may wish to comment or contribute to the discussion.
                        Maybe you could tell us if any further development is planned.


                        Looking forward to hearing from you.



                        • #13
                          Ken, I'm on a PC running Win XP but I must have a different version of the program. At first I couldn't access the link you provided (I think their server was down last night) so I googled "Strassmanns algorithm" and found the Java classes on another site:

                          - Kurt


                          • #14
                            Kurt. I’m glad that my link did not work because you found a newer version. All the files in the tar.gz are dated 2000. The files in your link are dated 2001 and there is a vast improvement in quality.

                            I’m not sure what happened with my last test, but it processed a larger image. I opened ‘almost a painting’ and the little picture box became almost full screen and the program processed the whole image. So maybe there is a bug or maybe it will do bigger file sizes.

                            Attached Files


                            • #15
                              I played around with varying file sizes (multiples of 192 and 166, etc) and couldn't get any to fully load. I downloaded "almost a painting" - lo and behold it loaded! Afterwards, I was able to load my other test files! There's a bug lurking there somewhere.

                              Attached is an example of one of my test pics. I'm finding that it seems to work best with nature scenes rather than portraits.

                              I'll play with it more to see if I can find what the magic is for loading files.

                              - Kurt
                              Attached Files


                              Related Topics


                              • swivelchair
                                Empty Zip Files For PSE4
                                by swivelchair
                                Earlier this evening I attempted to download and install the free sample of HiddenPower for Photoshop Elements 4.0. I sent in for and received a link from which to download the zip folder from, and I had no problem downloading it.

                                However, after I unzipped the file, I went on to unzip...
                                09-13-2008, 12:51 AM
                              • barry_uk
                                TPX File
                                by barry_uk
                                I am confused here can anyone help! I was told photoshop can open Tpx files! Am I doing something wrong in trying too attempt to open these files?
                                Or am I wrong that PS cannot view Tpx files? Thanks...
                                01-17-2006, 03:12 PM
                              • nspwis
                                Image Type: "File" instead of "TIF"
                                by nspwis
                                I'm working with CS2. I always save files as TIFs -- occasionally, when I try to re-open a particular one, Photoshop says it can't open it because it is the wrong kind of file and when I check the file, it says "Image type: file", rather than "Image type: TIF"
                                I can correct...
                                05-14-2007, 04:49 AM
                              • patrickt
                                .ORF files-Batch import for PSE2.0
                                by patrickt
                                Can I import RAW Olympus files, .ORF files, as a batch into PSE2.0?
                                08-04-2003, 02:09 PM
                              • stonercreek
                                WARNING: Virus Hidden In IMAGES
                                by stonercreek
                                Bad bug...really bad! Microsoft security guys scrambling.

                                This virus hides in graphic files and auto infects Windows PCs that simply visit the page on which the image is located.

                                Bad news: Microsoft won't have a fix for it until next Tuesday, January 10th.
                                01-04-2006, 06:31 AM