Page 2 of 2 FirstFirst 12
Results 21 to 27 of 27
  1. #21
    Stephen Douglas's Avatar
    Stephen Douglas is offline Senior Member
    Join Date
    Mar 2010
    Posts
    137
    Rep Power
    0

    Default

    I tried these but non of them are working....
    C:\Users\Mild Seven\Desktop\OtherOther\JSection\COMPIL~1>java -cp .;* Cd00
    Exception in thread "main" java.lang.UnsupportedClassVersionError: Cd00 (Unsupported major.minor version 50.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknow n Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)



    C:\Users\MildSeven\Desktop\OtherOther\JSection\COM PIL~1>java -cp * Cd00
    Exception in thread "main" java.lang.NoClassDefFoundError: Cd00/java




    C:\Users\Mild Seven\Desktop\OtherOther\JSection\COMPIL~1>java -cp . Cd00
    Exception in thread "main" java.lang.UnsupportedClassVersionError: Cd00 (Unsupported major.minor version 50.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknow n Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)



    C:\Users\Mild Seven\Desktop\OtherOther\JSection\COMPIL~1>java -cp ./* Cd00
    Exception in thread "main" java.lang.NoClassDefFoundError: //Cd00/java

    :eek:
    The Quieter you become the more you are able to hear !

  2. #22
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,014
    Rep Power
    20

    Default

    Do "java -version".
    And "javac -version".
    Looks like your javac (that is your JDK) is a newer version than the JRE (ie java) that you're using.

    And the first one you tried was correct.

  3. #23
    Stephen Douglas's Avatar
    Stephen Douglas is offline Senior Member
    Join Date
    Mar 2010
    Posts
    137
    Rep Power
    0

    Default

    C:\Users\Mild Seven\Desktop\OtherOther\JSection\COMPIL~1>java -version
    java version "1.3.1_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
    Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)

    C:\Users\Mild Seven\Desktop\OtherOther\JSection\COMPIL~1>javac -version
    javac 1.6.0_14


    What to do now??

    The jdk was installed automatically when i installed netbeans 6.8
    The Quieter you become the more you are able to hear !

  4. #24
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,014
    Rep Power
    20

    Default

    Depends on what target you want your stuff to run on. If it's intended for 1.6, then you'll need to point your JRE_HOME to the 1.6 directory. If it's 1.3...I would say that is waaaay too old to be targetting.

  5. #25
    Stephen Douglas's Avatar
    Stephen Douglas is offline Senior Member
    Join Date
    Mar 2010
    Posts
    137
    Rep Power
    0

    Default

    You mean setting the classpath??

    I set the value- C:\Program Files\Java\jre6\bin; in the variable name - "path" and even created the new one "JRE_HOME" but the response is the same...
    plz suggest??
    :(
    The Quieter you become the more you are able to hear !

  6. #26
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,525
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Stephen Douglas View Post
    You mean setting the classpath??

    I set the value- C:\Program Files\Java\jre6\bin; in the variable name - "path" and even created the new one "JRE_HOME" but the response is the same...
    plz suggest??
    :(
    My suggestion is that you read Sun's Jar Tutorial because you're only guessing now and this thread is going nowhere.

    kind regards,

    Jos

  7. #27
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by JosAH View Post
    My suggestion is that you read Sun's Jar Tutorial because you're only guessing now and this thread is going nowhere.
    I think that's must. Seems this thread is real mess-up.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Edit In place for JSF
    By akira_mz86@yahoo.com in forum New To Java
    Replies: 2
    Last Post: 02-24-2010, 10:35 AM
  2. Where to place jar files
    By rummy in forum New To Java
    Replies: 3
    Last Post: 02-11-2010, 01:08 AM
  3. Extract jar and place in other folder
    By kkk in forum Advanced Java
    Replies: 4
    Last Post: 08-31-2009, 09:42 AM
  4. How To Place Three Files In A Folder
    By ramesh.8189 in forum AWT / Swing
    Replies: 4
    Last Post: 02-12-2009, 07:59 AM
  5. how to place the controls >
    By makpandian in forum AWT / Swing
    Replies: 1
    Last Post: 12-18-2008, 06:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •