Page 1 of 2 12 LastLast
Results 1 to 20 of 27
Like Tree2Likes

Thread: Java installation error needing soLution!!!

  1. #1
    ese
    ese is offline Member
    Join Date
    Jul 2011
    Posts
    15
    Rep Power
    0

    Question Java installation error needing soLution!!!

    Hello everyone,

    I am a first time user of java JDK. I foIIowed aII required information to instaII it. FinaIIy it was instaIIed .

    The appIication can compiIe my programs to produce a cIass fiIe but it pops up aImost 6 Iines of error messages each time I attempt to run the program. .Something Iike this -

    Expectation in thread "main" java.Iang.CIassNot FoundError: saIutionn
    at Java.IangCIassNotFoundExpectation:saIutionn
    at Java.net.URL CIass Ioader1$.run<Unknown Source>
    at Java.AccessControIIer.doPriviIedged<Native Method>
    at Java.net.URLCIassLoader.FindClass<Unknown Source>
    at Java.lang.ClassLoader.LoadClass<Unknown Source>
    at Java.AccessControIIer.doPriviIedge<Native Method>
    at sun.misc.Launcher$AppCIassLoader.LoadClass<Unknown Source>
    at Java.lang.ClassLoader.LoadClass<Unknown Source>

    CouId not find the main cIass:saIutionn. Program wiII exit.

    Has anyone encountered this problem? PIease heIp me out of this frustrating experience if you can.

    Thanks
    ese

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,801
    Rep Power
    25

    Default

    CIassNot FoundError: saIutionn
    What command do you enter to execute your java program?
    Is there a saIutionn.class file in the folder where you execute the java command? The java command can not find it.

    Why are all the letter Ls changed to the letter I?

  3. #3
    ese
    ese is offline Member
    Join Date
    Jul 2011
    Posts
    15
    Rep Power
    0

    Default java error correction & solution needed!

    Hi and thanks for contacting me.
    I used
    java salutionn
    on both the C: directory and on the directory the class file was stored.

    pardon me for the I in place of L. that was just a recent keyboard problem. my "L" button stopped working. I have fixed it.

    I have the class file but it doesnt output result when I run it. please take a look at the attached screen shots.

    ese.
    Attached Thumbnails Attached Thumbnails Java installation error needing soLution!!!-preview-copy..jpg  

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,801
    Rep Power
    25

    Default

    Please copy the contents of the command prompt here. The image is too small to see.
    To copy the contents of the command prompt window:
    Click on Icon in upper left corner
    Select Edit
    Select 'Select All' - The selection will show
    Click in upper left again
    Select Edit and click 'Copy'

    Paste here.

  5. #5
    ese
    ese is offline Member
    Join Date
    Jul 2011
    Posts
    15
    Rep Power
    0

    Default java runtime error need solution!!

    Ok. here it is

    C:\>java
    Usage: java [-options] class [args...]
    (to execute a class)
    or java [-options] -jar jarfile [args...]
    (to execute a jar file)

    where options include:
    -client to select the "client" VM
    -server to select the "server" VM
    -hotspot is a synonym for the "client" VM [deprecated]
    The default VM is client.

    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
    A ; separated list of directories, JAR archives,
    and ZIP archives to search for class files.
    -D<name>=<value>
    set a system property
    -verbose[:class|gc|jni]
    enable verbose output
    -version print product version and exit
    -version:<value>
    require the specified version to run
    -showversion print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
    include/exclude user private JREs in the version search
    -? -help print this help message
    -X print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
    enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
    disable assertions
    -esa | -enablesystemassertions
    enable system assertions
    -dsa | -disablesystemassertions
    disable system assertions
    -agentlib:<libname>[=<options>]
    load native agent library <libname>, e.g. -agentlib:hprof
    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
    load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
    load Java programming language agent, see java.lang.instrument

    -splash:<imagepath>
    show splash screen with specified image

    C:\>


    ----------------------------------------------------------------------------------------------------

    C:\>cd program files

    C:\Program Files>cd java

    C:\Program Files\Java>java version
    Exception in thread "main" java.lang.NoClassDefFoundError: version
    Caused by: java.lang.ClassNotFoundException: version
    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)
    Could not find the main class: version. Program will exit.

    C:\Program Files\Java>cd..

    C:\Program Files>cd..

    ----------------------------------------------------------------------------------------------------------

    C:\>cd javaSTUDY

    C:\JavaSTUDY>java salutionn

    Exception in thread "main" java.lang.NoClassDefFoundError: salutionn
    Caused by: java.lang.ClassNotFoundException: salutionn
    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)
    Could not find the main class: salutionn. Program will exit.

    C:\JavaSTUDY>

    thanks
    ese

  6. #6
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,801
    Rep Power
    25

    Default

    Are you sure the class files are in the folders where the java command was issued?
    There needed to be a version.class file in the C:\Program Files\Java folder
    and/or a salutionn.class file in the C:\JavaSTUDY> folder
    How did you compile the .java files? What folders are the .java files in?

    Use the dir command to display the contents of the folders.

  7. #7
    return is offline Member
    Join Date
    Jul 2011
    Posts
    11
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    Are you sure the class files are in the folders where the java command was issued?
    There needed to be a version.class file in the C:\Program Files\Java folder
    and/or a salutionn.class file in the C:\JavaSTUDY> folder
    How did you compile the .java files? What folders are the .java files in?

    Use the dir command to display the contents of the folders.
    Tho ammata hukana ponna wesige putha mama message ekak damma neda "why did you cross post kiyala"? uba eka delete karala uba loku eka wagey OP ge prashneyta uthara dunna neda? Aney hukey uba wagey ammata hukana gon wesige puthek. Menna balapan cross post eka Project Research for Employers on Guru.com - Guru Answers dang gihin athey gahaganing.

    What you don't understand? Ask Eranga he will tell you.

  8. #8
    ese
    ese is offline Member
    Join Date
    Jul 2011
    Posts
    15
    Rep Power
    0

    Default

    Yes its is in the javaSTUDY folder. here are the Directories


    C:\>cd program files

    C:\Program Files>cd java


    C:\Program Files\Java>DIR
    Volume in drive C has no label.
    Volume Serial Number is E89D-F366

    Directory of C:\Program Files\Java

    07/29/2011 04:57 PM <DIR> .
    07/29/2011 04:57 PM <DIR> ..
    07/28/2011 02:39 AM <DIR> jdk1.6.0_26
    07/28/2011 02:39 AM <DIR> jre6

    0 File(s) 0 bytes
    4 Dir(s) 141,889,732,608 bytes free


    C:\Program Files\Java>CD..

    C:\Program Files>DIR
    Volume in drive C has no label.
    Volume Serial Number is E89D-F366

    Directory of C:\Program Files

    07/29/2011 07:01 PM <DIR> .
    07/29/2011 07:01 PM <DIR> ..
    08/25/2009 09:09 AM <DIR> Activation Assistant for the 2007 Microsoft Office suites
    07/08/2011 06:34 PM <DIR> Adobe
    03/17/2010 07:48 PM <DIR> Adobe Media Player
    07/03/2011 05:48 AM <DIR> Blender Foundation

    07/15/2011 01:15 AM <DIR> Internet Explorer
    07/29/2011 04:57 PM <DIR> Java
    07/28/2011 03:22 AM <DIR> JavaSTUDY

    07/08/2011 05:51 PM <DIR> McAfee

    08/13/2010 10:33 AM <DIR> SFT
    07/28/2011 02:39 AM <DIR> Sun
    03/17/2010 05:38 PM <DIR> T-Mobile
    07/15/2011 01:07 AM <DIR> Windows Defender
    07/15/2011 01:07 AM <DIR> Windows Journal
    07/22/2011 08:10 PM <DIR> Windows Live
    07/22/2011 08:02 PM <DIR> Windows Live Toolbar
    07/15/2011 01:07 AM <DIR> Windows Mail
    07/15/2011 01:07 AM <DIR> Windows Media Player
    10/02/2010 04:17 PM <DIR> Windows Mobile 5.0 SDK R2

    0 File(s) 0 bytes
    67 Dir(s) 141,889,732,608 bytes free

    C:\Program Files>


    C:\Program Files>CD JavaSTUDY

    C:\Program Files\JavaSTUDY>DIR
    Volume in drive C has no label.
    Volume Serial Number is E89D-F366

    Directory of C:\Program Files\JavaSTUDY

    07/28/2011 03:22 AM <DIR> .
    07/28/2011 03:22 AM <DIR> ..
    07/27/2011 04:44 AM 0 anything.java
    07/27/2011 07:04 PM 422 salution.class
    07/27/2011 06:55 PM 268 salution.java
    07/28/2011 03:07 AM 433 salutionn.class
    07/28/2011 03:05 AM 352 salutionn.Java
    5 File(s) 1,475 bytes
    2 Dir(s) 141,889,064,960 bytes free

    C:\Program Files\JavaSTUDY>javac salutionn
    error: Class names, 'salutionn', are only accepted if annotation processing is e
    xplicitly requested
    1 error

    C:\Program Files\JavaSTUDY>javac 'salutionn'
    javac: invalid flag: 'salutionn'
    Usage: javac <options> <source files>
    use -help for a list of possible options

    C:\Program Files\JavaSTUDY>java salutionn
    Exception in thread "main" java.lang.NoClassDefFoundError: salutionn
    Caused by: java.lang.ClassNotFoundException: salutionn
    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)
    Could not find the main class: salutionn. Program will exit.

    C:\Program Files\JavaSTUDY>-help
    '-help' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Program Files\JavaSTUDY>

  9. #9
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,801
    Rep Power
    25

    Default

    You did NOT do the dir command directly before you did the java command. You used the javac command twice before using the java command. I don't think the javac command would erase anything but there is always a chance.

    I have no idea how you can configure your system so that the java command issued with a classname whose classfile is in the current folder can generate the error message you are getting.

    What is the contents of the salutionn.Java file?

    Here is the message I get when I use the java command without there being a class file:

    D:\JavaDevelopment\Testing\ForumQuestions6>java asdf
    Exception in thread "main" java.lang.NoClassDefFoundError: asdf
    Caused by: java.lang.ClassNotFoundException: asdf
    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)
    Could not find the main class: asdf. Program will exit.

    D:\JavaDevelopment\Testing\ForumQuestions6>

  10. #10
    ese
    ese is offline Member
    Join Date
    Jul 2011
    Posts
    15
    Rep Power
    0

    Default I see a java control panel on my system

    wow. I actually did use the c:>DIR before the java command.

    Hi and thanks for your reply.The java package is in different folders under the c: >\program files DIRECTORY.The first line with jdk1.6.0_26 has all the javac.exe and java.exe files.

    C:\Program Files\Java\jdk1.6.0_26\bin
    C:\Program Files\Sun\JavaDB\bin
    C:\Program Files\Microsoft SDKs

    I changed my CLASSPATH under environment variable from:

    C:\Windows\System32\QTJava.zip

    to:

    C:\Windows\System32\QTJava.zip;C:\Program Files\Java\jdk1.6.0_26\bin;C:\Program Files\JavaSTUDY

    JavaSTUDY is the folder where I saved my written programs.The compiled class file are also saved here.

    Am I doing the right thing??


    I also found out that there is a java control panel on my system. Under its sub menu it has the ''Java Runtime Environment settings ". I decided to take a look at the path and I found out it was set to:
    C:\Program Files\Java\jre6\bin\javaw.exe

    I attempted to change it or even add this path to it:

    C:\Program Files\Java\jdk1.6.0_26\bin

    but it would not respond to changes or adjustment.

    Is this normal ? do you have java control panel on your system after you installed java?

    please take a look at the detailed contents of the various directory below.

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\Esosa.Esosa-PC>ccd\
    'ccd\' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Users\Esosa.Esosa-PC>cd\

    C:\>dir
    Volume in drive C has no label.
    Volume Serial Number is E89D-F366

    Directory of C:\

    06/10/2009 10:42 PM 24 autoexec.bat
    06/10/2009 10:42 PM 10 config.sys

    07/29/2011 07:01 PM <DIR> Program Files
    07/18/2011 07:48 PM <DIR> tmp
    03/16/2010 09:48 PM <DIR> Users
    07/22/2011 08:10 PM <DIR> Windows
    3 File(s) 8,560,028 bytes
    7 Dir(s) 141,912,440,832 bytes free

    C:\>

    Volume in drive C has no label.
    Volume Serial Number is E89D-F366

    Directory of C:\Program Files\Java\jdk1.6.0_26\bin

    07/28/2011 02:36 AM <DIR> .
    07/28/2011 02:36 AM <DIR> ..
    07/28/2011 02:36 AM 33,536 appletviewer.exe
    07/28/2011 02:36 AM 33,536 apt.exe
    07/28/2011 02:36 AM 30,208 beanreg.dll
    07/28/2011 02:36 AM 33,536 extcheck.exe
    07/28/2011 02:36 AM 55,040 HtmlConverter.exe
    07/28/2011 02:36 AM 33,536 idlj.exe
    07/28/2011 02:36 AM 33,536 jar.exe
    07/28/2011 02:36 AM 33,536 jarsigner.exe
    07/28/2011 02:36 AM 33,536 java-rmi.exe
    07/28/2011 02:36 AM 145,152 java.exe
    07/28/2011 02:36 AM 33,536 javac.exe
    07/28/2011 02:36 AM 33,536 javadoc.exe
    07/28/2011 02:36 AM 33,536 javah.exe
    07/28/2011 02:36 AM 33,536 javap.exe
    07/28/2011 02:36 AM 145,152 javaw.exe
    07/28/2011 02:36 AM 157,440 javaws.exe
    07/28/2011 02:36 AM 34,048 jconsole.exe
    07/28/2011 02:36 AM 33,536 jdb.exe
    07/28/2011 02:36 AM 33,536 jhat.exe
    07/28/2011 02:36 AM 33,536 jinfo.exe
    07/28/2011 02:36 AM 77,824 jli.dll
    07/28/2011 02:36 AM 33,536 jmap.exe
    07/28/2011 02:36 AM 33,536 jps.exe
    07/28/2011 02:36 AM 33,536 jrunscript.exe
    07/28/2011 02:36 AM 33,536 jstack.exe
    07/28/2011 02:36 AM 33,536 jstat.exe
    07/28/2011 02:36 AM 33,536 jstatd.exe
    07/28/2011 02:36 AM 47,360 jvisualvm.exe
    07/28/2011 02:36 AM 33,536 keytool.exe
    07/28/2011 02:36 AM 33,536 kinit.exe
    07/28/2011 02:36 AM 33,536 klist.exe
    07/28/2011 02:36 AM 33,536 ktab.exe
    07/28/2011 02:36 AM 348,160 msvcr71.dll
    07/28/2011 02:36 AM 33,536 native2ascii.exe
    07/28/2011 02:36 AM 33,536 orbd.exe
    07/28/2011 02:36 AM 33,536 pack200.exe
    07/28/2011 02:36 AM 79,616 packager.exe
    07/28/2011 02:36 AM 33,536 policytool.exe
    07/28/2011 02:36 AM 33,536 rmic.exe
    07/28/2011 02:36 AM 33,536 rmid.exe
    07/28/2011 02:36 AM 33,536 rmiregistry.exe
    07/28/2011 02:36 AM 33,536 schemagen.exe
    07/28/2011 02:36 AM 33,536 serialver.exe
    07/28/2011 02:36 AM 33,536 servertool.exe
    07/28/2011 02:36 AM 33,536 tnameserv.exe
    07/28/2011 02:36 AM 132,864 unpack200.exe
    07/28/2011 02:36 AM 33,536 wsgen.exe
    07/28/2011 02:36 AM 33,536 wsimport.exe
    07/28/2011 02:36 AM 33,536 xjc.exe
    49 File(s) 2,527,232 bytes
    2 Dir(s) 141,915,086,848 bytes free

    C:\Program Files\Java\jdk1.6.0_26\bin>




    C:\Program Files>CD SUN

    C:\Program Files\Sun>DIR
    Volume in drive C has no label.
    Volume Serial Number is E89D-F366

    Directory of C:\Program Files\Sun

    07/28/2011 02:39 AM <DIR> .
    07/28/2011 02:39 AM <DIR> ..
    07/28/2011 02:39 AM <DIR> JavaDB
    0 File(s) 0 bytes
    3 Dir(s) 141,916,315,648 bytes free

    C:\Program Files\Sun>CD JavaDB

    C:\Program Files\Sun\JavaDB>dir
    Volume in drive C has no label.
    Volume Serial Number is E89D-F366

    Directory of C:\Program Files\Sun\JavaDB

    07/28/2011 02:39 AM <DIR> .
    07/28/2011 02:39 AM <DIR> ..
    09/22/2010 07:26 PM 11,208 3RDPARTY
    07/28/2011 02:39 AM <DIR> bin
    07/28/2011 02:39 AM <DIR> demo
    07/28/2011 02:39 AM <DIR> docs
    09/22/2010 07:26 PM 5,513 index.html
    07/28/2011 02:39 AM <DIR> javadoc
    07/28/2011 02:39 AM <DIR> lib
    09/22/2010 07:26 PM 11,358 LICENSE
    09/22/2010 07:26 PM 6,949 NOTICE
    10/28/2010 02:08 AM 11,767 register.html
    09/22/2010 07:26 PM 15,076 RELEASE-NOTES.html
    6 File(s) 61,871 bytes
    7 Dir(s) 141,916,311,552 bytes free

    C:\Program Files\Sun\JavaDB>cd bin

    C:\Program Files\Sun\JavaDB\bin>dir
    Volume in drive C has no label.
    Volume Serial Number is E89D-F366

    Directory of C:\Program Files\Sun\JavaDB\bin

    07/28/2011 02:39 AM <DIR> .
    07/28/2011 02:39 AM <DIR> ..
    09/21/2010 04:19 PM 5,740 dblook
    08/20/2010 11:01 PM 1,387 dblook.bat
    08/20/2010 11:01 PM 2,426 derby_common.bat
    09/21/2010 04:19 PM 5,876 ij
    08/20/2010 11:01 PM 1,379 ij.bat
    09/21/2010 04:19 PM 5,801 NetworkServerControl
    08/20/2010 11:01 PM 1,413 NetworkServerControl.bat
    08/20/2010 11:01 PM 1,073 setEmbeddedCP
    08/20/2010 11:01 PM 1,278 setEmbeddedCP.bat
    08/20/2010 11:01 PM 1,079 setNetworkClientCP
    08/20/2010 11:01 PM 1,284 setNetworkClientCP.bat
    08/20/2010 11:01 PM 1,075 setNetworkServerCP
    08/20/2010 11:01 PM 1,273 setNetworkServerCP.bat
    09/21/2010 04:19 PM 5,807 startNetworkServer
    08/20/2010 11:01 PM 1,397 startNetworkServer.bat
    09/21/2010 04:19 PM 5,810 stopNetworkServer
    08/20/2010 11:01 PM 1,403 stopNetworkServer.bat
    09/21/2010 04:19 PM 5,789 sysinfo
    08/20/2010 11:01 PM 1,389 sysinfo.bat
    19 File(s) 52,679 bytes
    2 Dir(s) 141,916,311,552 bytes free

    C:\Program Files\Sun\JavaDB\bin>cd..

    C:\Program Files\Sun\JavaDB>cd..

    C:\Program Files\Sun>cd..

    C:\Program Files>cd sdks
    The system cannot find the path specified.

    C:\Program Files>cd SDKs
    The system cannot find the path specified.

    C:\Program Files>cd microsoft SDKs

    C:\Program Files\Microsoft SDKs>dir
    Volume in drive C has no label.
    Volume Serial Number is E89D-F366

    Directory of C:\Program Files\Microsoft SDKs

    10/02/2010 03:25 PM <DIR> .
    10/02/2010 03:25 PM <DIR> ..
    10/14/2010 05:50 PM <DIR> Windows
    0 File(s) 0 bytes
    3 Dir(s) 141,916,098,560 bytes free

    C:\Program Files\Microsoft SDKs>cd Windows

    C:\Program Files\Microsoft SDKs\Windows>dir
    Volume in drive C has no label.
    Volume Serial Number is E89D-F366

    Directory of C:\Program Files\Microsoft SDKs\Windows

    10/14/2010 05:50 PM <DIR> .
    10/14/2010 05:50 PM <DIR> ..
    10/02/2010 04:26 PM <DIR> v6.0A
    0 File(s) 0 bytes
    3 Dir(s) 141,916,098,560 bytes free

    C:\Program Files\Microsoft SDKs\Windows>cd v6.0A

    C:\Program Files\Microsoft SDKs\Windows\v6.0A>dir
    Volume in drive C has no label.
    Volume Serial Number is E89D-F366

    Directory of C:\Program Files\Microsoft SDKs\Windows\v6.0A

    10/02/2010 04:26 PM <DIR> .
    10/02/2010 04:26 PM <DIR> ..
    10/02/2010 04:26 PM <DIR> bin
    10/14/2010 05:46 PM <DIR> Bootstrapper
    10/02/2010 04:26 PM <DIR> FXCop
    10/02/2010 04:25 PM <DIR> Include
    10/02/2010 04:26 PM <DIR> Lib
    0 File(s) 0 bytes
    7 Dir(s) 141,916,098,560 bytes free

    C:\Program Files\Microsoft SDKs\Windows\v6.0A>cd bin

    C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin>dir
    Volume in drive C has no label.
    Volume Serial Number is E89D-F366

    Directory of C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin

    10/02/2010 04:26 PM <DIR> .
    10/02/2010 04:26 PM <DIR> ..
    11/07/2007 12:01 PM 72,688 al.exe
    11/06/2007 09:53 PM 140 al.exe.config
    09/27/2007 02:17 PM 40,808 apatch.exe
    11/07/2007 12:01 PM 913,416 aspnet_merge.exe
    07/29/2008 02:59 PM 58,360 AxImp.exe
    09/27/2007 02:17 PM 34,128 Bind.Exe
    09/27/2007 02:17 PM 511,336 capicom.dll
    09/27/2007 02:17 PM 21,352 Cert2Spc.exe
    09/27/2007 02:17 PM 75,112 CertMgr.Exe
    09/27/2007 02:17 PM 30,568 checkv4.exe
    11/07/2007 12:01 PM 66,040 clrver.exe
    09/27/2007 02:17 PM 24,424 Consume.exe
    11/07/2007 12:01 PM 185,336 cordbg.exe
    11/07/2007 12:01 PM 72,192 CorFlags.exe
    09/27/2007 02:17 PM 59,240 ctrpp.exe
    06/19/2006 02:09 PM 247 dasmhlp.cnt
    06/19/2006 02:09 PM 21,963 DASMHLP.HLP
    10/12/2007 07:12 PM 49,152 disco.exe
    09/28/2007 02:26 PM 313,880 ECMangen.exe
    09/27/2007 02:17 PM 257,863 ECMangenreference.mht
    10/02/2010 04:25 PM <DIR> en-us
    09/27/2007 02:17 PM 77,824 Esp32.Tsp
    09/27/2007 02:17 PM 47,464 EspExe.Exe
    09/27/2007 02:17 PM 21,864 espui.dll
    09/27/2007 02:17 PM 207,720 evrprop.dll
    09/27/2007 02:17 PM 18,280 ExtidGen.Exe
    09/27/2007 02:17 PM 86,376 fdbrowser.exe
    11/07/2007 12:01 PM 107,520 FUSLOGVW.exe
    11/07/2007 12:01 PM 106,496 gacutil.exe
    11/06/2007 08:07 PM 181 gacutil.exe.config
    09/27/2007 02:17 PM 132,456 genmanifest.exe
    09/27/2007 02:17 PM 57,848 graphedit.chm
    09/27/2007 02:17 PM 222,568 graphedt.exe
    11/07/2007 12:01 PM 31,744 guidgen.exe
    09/27/2007 02:17 PM 284,008 IACOM.dll
    09/27/2007 02:17 PM 85,352 IALoader.dll
    11/07/2007 12:01 PM 386,040 ildasm.exe
    11/06/2007 08:07 PM 181 ildasm.exe.config
    09/27/2007 02:17 PM 3,105 INSTLR1.ADM
    09/27/2007 02:17 PM 9,179 instlr11.adm
    09/27/2007 02:17 PM 596 isvtier5appsigningprivkey.dat
    09/27/2007 02:17 PM 148 isvtier5appsigningpubkey.dat
    09/27/2007 02:17 PM 21,234 isvtier5appsignsdk.cc
    09/27/2007 02:17 PM 4,916 isvtier5appsignsdk.xml
    09/27/2007 02:17 PM 56,994 isvtier5appsignsdk_client.xml
    09/27/2007 02:17 PM 202,088 isXPS.exe
    09/27/2007 02:17 PM 767,336 isXPShlp.dll
    09/27/2007 02:17 PM 166,248 IViewers.Dll
    07/29/2008 02:59 PM 46,064 lc.exe
    11/07/2007 12:01 PM 78,840 mage.exe
    11/07/2007 12:01 PM 463,864 mageui.exe
    09/27/2007 02:17 PM 124,264 make-shell.exe
    09/27/2007 02:17 PM 31,080 MakeCat.Exe
    09/27/2007 02:17 PM 57,704 makecert.exe
    09/27/2007 02:17 PM 24,034 mc.chm
    09/27/2007 02:17 PM 365,928 MC.Exe
    11/07/2007 12:01 PM 111,608 Mdbg.exe
    11/07/2007 12:01 PM 367,616 MdbgCore.dll
    11/07/2007 12:01 PM 95,744 MdbgDis.dll
    09/27/2007 02:17 PM 170,856 MergeMod.Dll
    11/07/2007 12:01 PM 25,608 mgmtclassgen.exe
    09/27/2007 02:17 PM 522 Microsoft.VC80.CRT.manifest
    09/27/2007 02:17 PM 89,448 midl.exe
    09/27/2007 02:17 PM 821,608 midlc.exe
    09/27/2007 02:17 PM 2,184 msi.adm
    09/27/2007 02:17 PM 75,112 MsiCert.exe
    09/27/2007 02:17 PM 156,008 MsiDb.Exe
    09/27/2007 02:17 PM 73,576 MsiFiler.Exe
    09/27/2007 02:17 PM 99,176 MsiInfo.Exe
    09/27/2007 02:17 PM 65,896 MsiMerg.Exe
    09/27/2007 02:17 PM 68,456 MsiMsp.Exe
    09/27/2007 02:17 PM 74,088 MsiStuff.Exe
    09/27/2007 02:17 PM 16,516 MsiTool.Mak
    10/02/2010 04:25 PM <DIR> msitools
    09/27/2007 02:17 PM 68,456 MsiTran.Exe
    09/27/2007 02:17 PM 1,205,248 MsiVal2.Msi
    09/28/2007 02:26 PM 113,688 MsiZap.Exe
    09/27/2007 02:17 PM 71,528 mspatchc.dll
    09/27/2007 02:17 PM 276 msrootpub1.dat
    09/27/2007 02:17 PM 276 msrootpub2.dat
    09/27/2007 02:17 PM 737,128 mt.exe
    10/04/2007 01:53 PM 119,320 MUIRCT.EXE
    09/27/2007 02:17 PM 190,824 OleView.Exe
    09/27/2007 02:17 PM 1,988,608 Orca.Msi
    09/27/2007 02:17 PM 270,184 patchwiz.dll
    09/28/2007 02:26 PM 43,032 perflibmig.exe
    11/07/2007 12:01 PM 37,888 PermCalc.exe
    11/07/2007 12:01 PM 79,360 PEVerify.exe
    11/06/2007 08:07 PM 181 PEVerify.exe.config
    09/27/2007 02:17 PM 321,896 proppage.dll
    09/27/2007 02:17 PM 373,096 ptconform.exe
    09/27/2007 02:17 PM 28,520 pvk2pfx.exe
    09/27/2007 02:17 PM 69,480 RC.Exe
    09/27/2007 02:17 PM 339,304 RcDll.Dll
    09/27/2007 02:17 PM 38,760 ReBase.Exe
    11/07/2007 12:01 PM 192,512 RequiredPermissions.dll
    11/07/2007 12:01 PM 62,456 ResGen.exe
    09/27/2007 02:17 PM 62,824 sddlgen.exe
    11/07/2007 12:01 PM 50,176 SecUtil.exe
    09/27/2007 02:17 PM 26,472 SetReg.exe
    10/12/2007 07:12 PM 45,056 sgen.exe
    09/27/2007 02:17 PM 112,488 signtool.exe
    11/07/2007 12:01 PM 95,728 sn.exe
    11/06/2007 08:07 PM 181 sn.exe.config
    10/12/2007 07:09 PM 36,864 SoapSuds.exe
    05/03/2007 09:43 AM 181 SoapSuds.exe.config
    10/12/2007 07:09 PM 12,800 SoapSudsCode.dll
    09/27/2007 02:17 PM 23,400 SpOrder.Dll
    09/27/2007 02:17 PM 28,008 SpOrder.Exe
    11/07/2007 12:01 PM 291,840 SqlMetal.exe
    08/04/2007 12:43 PM 156 SqlMetal.exe.config
    11/07/2007 12:01 PM 41,984 StoreAdm.exe
    06/21/2007 12:05 AM 63,820 SvcConfigEditor.chm
    10/17/2007 02:33 AM 2,102,288 SvcConfigEditor.exe
    09/21/2007 12:23 PM 60,421 SvcTraceViewer.chm
    10/11/2007 07:55 AM 696,320 SvcTraceViewer.exe
    10/11/2007 07:54 AM 184,320 SvcUtil.exe
    09/27/2007 02:17 PM 154,984 Tb20.Exe
    09/27/2007 02:17 PM 221,544 TB3x.exe
    09/27/2007 02:17 PM 93,544 tcpanalyzer.exe
    09/27/2007 02:17 PM 942 tcpanalyzer.exe.manifest
    11/07/2007 12:01 PM 62,456 TlbExp.exe
    11/07/2007 12:01 PM 70,648 TlbImp.exe
    09/27/2007 02:17 PM 406,376 tracefmt.exe
    09/27/2007 02:17 PM 43,368 tracepdb.exe
    09/27/2007 02:17 PM 268,648 traceprt.dll
    09/27/2007 02:17 PM 181,096 tracewpp.exe
    09/27/2007 02:17 PM 21,864 Uuidgen.Exe
    09/27/2007 02:17 PM 33,640 validatesd.exe
    09/27/2007 02:17 PM 2,577,768 VirtualSideShow.exe
    10/02/2010 04:26 PM <DIR> vsstools
    10/06/2007 03:18 AM 54,264 WCA.exe
    09/27/2007 02:17 PM 1,157 WellKnownSid.txt
    10/06/2007 03:19 AM 62,456 WFC.exe
    05/03/2007 09:43 AM 1,777 WFC.exe.config
    09/27/2007 02:17 PM 330,088 WiLogUtl.exe
    09/27/2007 02:17 PM 27,344 windiff.chm
    09/27/2007 02:17 PM 188,264 WinDiff.Exe
    09/27/2007 02:17 PM 144,232 WindowsSideShowVirtualDevice.exe
    11/07/2007 12:01 PM 152,568 WinRes.exe
    02/27/2007 08:10 PM 229,376 wsatui.dll
    10/12/2007 07:12 PM 81,920 wsdl.exe
    05/03/2007 09:43 AM 181 wsdl.exe.config
    09/27/2007 02:17 PM 671,744 XamlPad.exe
    07/29/2008 02:59 PM 87,032 xsd.exe
    11/07/2007 12:01 PM 103,416 xsltc.exe
    143 File(s) 25,979,856 bytes
    5 Dir(s) 141,916,098,560 bytes free

    C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin>
    Attached Thumbnails Attached Thumbnails Java installation error needing soLution!!!-java-control-panel.jpg  

  11. #11
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,801
    Rep Power
    25

    Default

    I changed my CLASSPATH under environment variable from:
    AHHA. The answer why the java command did NOT find a class in the current directory.
    The CLASSPATH variable did not have a reference to the current directory.
    You need to have a reference to the current directory (a dot) in the classpath:
    C:\Windows\System32\QTJava.zip;C:\Program Files\Java\jdk1.6.0_26\bin;C:\Program Files\JavaSTUDY;.
    You shouldn't put the JDK's bin folder in the classpath.
    Also you shouldn't put your current working directory on the classpath. When you move out of it, you could pick up old, unwanted class files from there.

  12. #12
    ese
    ese is offline Member
    Join Date
    Jul 2011
    Posts
    15
    Rep Power
    0

    Default O me O mi!! It is working!!!

    Woo hoo...

    Hello dear Doctor Norm. You wont believe what just happened.
    I actually added the ;. to the last part of the CLASSPATH. Then I decided to test it to see if it will work before I proceed to taking off the 'bin' file.

    Sweetly and nicely my first java program worked! awww so sweet to see results..

    Take a look..

    C:\>cd program files

    C:\Program Files>cd java

    C:\Program Files\Java>java salutionn
    Salution mondo!

    C:\Program Files\Java>java salution
    Hello World!

    This is great!

    You must celebrate with me...I just poped a wine and am passing yours across

    :

    Thank you so so much Norm. I really do appreciate your time and effort put forth.
    Thank you.

  13. #13
    aviolently is offline Member
    Join Date
    Jun 2011
    Posts
    23
    Rep Power
    0

    Default

    the pathfile of the application is not properly distinguished ...try to check the path of your application!

  14. #14
    ese
    ese is offline Member
    Join Date
    Jul 2011
    Posts
    15
    Rep Power
    0

    Default It does not identify my java version yet!

    Hi
    Please take a look. It is running the compiled file but it doesnt respond to the 'java version command'. What may be wrong?? please reply??

    How do you suggest I arrange the path to the classfile aviolently? can you post a sample arrangement that I can follow??



    C:\>java version
    Exception in thread "main" java.lang.NoClassDefFoundError: version
    Caused by: java.lang.ClassNotFoundException: version
    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)
    Could not find the main class: version. Program will exit.

    C:\>javac
    Usage: javac <options> <source files>
    where possible options include:
    -g Generate all debugging info
    -g:none Generate no debugging info
    -g:{lines,vars,source} Generate only some debugging info
    -nowarn Generate no warnings
    -verbose Output messages about what the compiler is doing
    -deprecation Output source locations where deprecated APIs are u
    sed
    -classpath <path> Specify where to find user class files and annotati
    on processors
    -cp <path> Specify where to find user class files and annotati
    on processors
    -sourcepath <path> Specify where to find input source files
    -bootclasspath <path> Override location of bootstrap class files
    -extdirs <dirs> Override location of installed extensions
    -endorseddirs <dirs> Override location of endorsed standards path
    -proc:{none,only} Control whether annotation processing and/or compil
    ation is done.
    -processor <class1>[,<class2>,<class3>...]Names of the annotation processors t
    o run; bypasses default discovery process
    -processorpath <path> Specify where to find annotation processors
    -d <directory> Specify where to place generated class files
    -s <directory> Specify where to place generated source files
    -implicit:{none,class} Specify whether or not to generate class files for
    implicitly referenced files
    -encoding <encoding> Specify character encoding used by source files
    -source <release> Provide source compatibility with specified release

    -target <release> Generate class files for specific VM version
    -version Version information
    -help Print a synopsis of standard options
    -Akey[=value] Options to pass to annotation processors
    -X Print a synopsis of nonstandard options
    -J<flag> Pass <flag> directly to the runtime system


    C:\>cd program files

    C:\Program Files>cd java

    C:\Program Files\Java>java salutionn
    Salution mondo!

    C:\Program Files\Java>

  15. #15
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,801
    Rep Power
    25

    Default

    A suggestion. Move your personal stuff out of the Program Files folder. That folder is for installed products.
    Create your own folder to hold you source files.

  16. #16
    ese
    ese is offline Member
    Join Date
    Jul 2011
    Posts
    15
    Rep Power
    0

    Default

    hello Norm.
    I attempted moving the javaSTUDY folder out of the program files folder. the error message started again.

    I have moved it back to it since it can run my programs. I just hope it wont be a problem later on.

    Thanks again.

  17. #17
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,801
    Rep Power
    25

    Default

    What is your CLASSPATH variable set to now?
    Open a command prompt and enter: set
    To copy the contents of the command prompt window:
    Click on Icon in upper left corner
    Select Edit
    Select 'Select All' - The selection will show
    Click in upper left again
    Select Edit and click 'Copy'

    Paste here.

    Here is what mine looks like (up to classpath):
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.

    D:\Norms\Norms Tools>set
    ALLUSERSPROFILE=C:\Documents and Settings\All Users
    ANT_HOME=C:\Program Files\apache-ant-1.6.5
    APPDATA=C:\Documents and Settings\Owner\Application Data
    CATALINA_HOME=D:\Program Files\Apache Software Foundation\Tomcat 5.5
    Classpath=D:\JavaDevelopment;.

  18. #18
    ese
    ese is offline Member
    Join Date
    Jul 2011
    Posts
    15
    Rep Power
    0

    Default

    hI Norman
    This is the current state that is compi1ing and running my written programs... but it does not identify the java version. when the commend is typed.
    .
    C:\Users\Ese.Ese-PC>set
    ALLUSERSPROFILE=C:\ProgramData
    APPDATA=C:\Users\Ese.Ese-PC\AppData\Roaming
    CLASSPATH=C:\Windows\System32\QTJava.zip;C:\Progra m Files\Java\jdk1.6.0_26\bin;C
    :\Program Files\JavaSTUDY;.
    CommonProgramFiles=C:\Program Files\Common Files

    ComSpec=C:\windows\system32\cmd.exe
    configsetroot=C:\windows\ConfigSetRoot
    FP_NO_HOST_CHECK=NO
    HOMEPATH=\Users\Ese.Ese-PC
    LOCALAPPDATA=C:\Users\Ese.Ese-PC\AppData\Local

    OS=Windows_NT
    Path=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\windows\syst
    em32;C:\windows;C:\windows\System32\Wbem;C:\window s\System32\WindowsPowerShell\v
    1.0\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Micro
    soft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Bi
    nn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:
    \Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Pro
    gram Files\Windows Live\Shared;C:\Program Files\Java\jdk1.6.0_26\bin;C:\Program
    Files\JavaSTUDY;C:\Program Files\Java\jdk1.6.0_26\bin;C:\Program Files\JavaSTUDY


    ProgramData=C:\ProgramData
    ProgramFiles=C:\Program Files

    PSModulePath=C:\windows\system32\WindowsPowerShell \v1.0\Modules\

    QTJAVA="C:\windows\system32\QTJava.zip"

    SystemDrive=C:

    TEMP=C:\Users\ESE~1.ESE\AppData\Local\Temp
    TMP=C:\Users\ESE~1.ESE\AppData\Local\Temp


    C:\Users\Ese.Ese-PC>
    Last edited by ese; 07-31-2011 at 04:33 AM.

  19. #19
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,801
    Rep Power
    25

    Default

    Did you try removing the path to the JDK's bin from the classpath?
    The ;. at the end should allow you to execute a class file from any directory.

    Do you get an error when you copy a .class file to a test folder and use the java command to execute it?
    The .java file should not have a package statement in it otherwise you need to change directories and other stuff.

  20. #20
    ese
    ese is offline Member
    Join Date
    Jul 2011
    Posts
    15
    Rep Power
    0

    Default

    hi everyone. somebody nice sent me this 1ink to he1p me so1ve my java prob1em. I decided to share with a11 you a11..

    take a 1ook

    Setting the class path

    ese

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 13
    Last Post: 01-24-2010, 11:58 AM
  2. Replies: 0
    Last Post: 01-18-2010, 03:57 AM
  3. Help Finding Compiler error solution please
    By jamesr2b in forum New To Java
    Replies: 5
    Last Post: 04-30-2009, 07:07 AM
  4. Error Occurred Executing Command Line Solution
    By RahulKhire in forum Eclipse
    Replies: 1
    Last Post: 09-10-2008, 02:38 PM
  5. Installation error
    By raghujapala@gmail.com in forum New To Java
    Replies: 2
    Last Post: 04-03-2008, 01:44 PM

Tags for this Thread

Posting Permissions

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