Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Help

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please can somebody help me with setup my machine, so i can write and execute java code. I�m an beginner and I have no programming experience, so please keep it simple. Please if you no some step by step plane to made my PC of laptop ready to reach my goal that will be better, or my be you no some url of website of an forum ware I can find some good basic info.

Thanks,
Sarkis
 
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Java Tutorial has all the information you need.
 
Sarkis Kirkoriyan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
C:\Sun>javac MyFirstApp.java'
javac' is not recognized as an internal or external command, operable program or batch file
 
Sarkis Kirkoriyan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did what wrote there but with out result. I stile resave the flowing error:

C:\Sun>javac MyFirstApp.java'
javac' is not recognized as an internal or external command, operable program or batch file

my uservariable path is : C:\Sun\AppServer\bin
and systemvariable is : C:\Sun\AppServer\bin

what is rong here??
 
Nigel Browne
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Edit either your user or system Path variable to include the full path of where your bin directory of your JDK is installed. For example:
C:\Program Files\Java\JDK 1.5.0\bin\
Don't forget that entries on the path are seperated by a semi-colon.
 
Sarkis Kirkoriyan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
fantastic, it works. but how can i setup the classpath? becose: Exception in thread "main" java.lang.NoClassDefFoundError.
 
Nigel Browne
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As a general rule you shouldn't set the classpath, instead refer to the classpath when you run your code.For example:


You can also use the shortened -cp flag.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sarkis Kirkoriyan:
C:\Sun>javac MyFirstApp.java'
javac' is not recognized as an internal or external command, operable program or batch file



Originally posted by Sarkis Kirkoriyan:
fantastic, it works. but how can i setup the classpath? becose: Exception in thread "main" java.lang.NoClassDefFoundError.



The tutorial that Nigel pointed you to explains what these error mean and what you should do about them.

So: Please read the tutorial and follow it step by step.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic