Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JRE problem

 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have build my application using netbeans 7 and the final line says use
to start the app from command line
i did the same

what went wrong please explain ?
 
Campbell Ritchie
Sheriff
Posts: 48921
58
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you set up as the path in NetBeans?
 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:What have you set up as the path in NetBeans?

resolved
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it is better to tell how it is solved, so it will help others in the future.
 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Likes 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hussein Baghdadi wrote:I think it is better to tell how it is solved, so it will help others in the future.

actually the problem was the laptop was of my friend and he has 2 account one admin and one non admin
he told me to work on non admin area
but the java was available in admin area fine you can compile code and see a long list when You type javac but
you will notice the strange message of JVM.cfg or whatever when you run
java -version
so i guess it is always better to check
  • java -version
  • javac
  • classpath
  • before approaching any forums for help
    because problem like this will be 95% solved just looking at this 3 things
    hope this helps
     
    Serghei Mazurean
    Greenhorn
    Posts: 10
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I had the same problem: I have a 64 bit Windows and when I typed "java -version" in CMD-Console i received the same Error message.
    Try to start a 64bit-cmd(C:\Windows\SysWOW64\cmd.exe) and you will see, it works there ;)
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic