• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

new to java pls help

 
vishwa venkat
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try setting path and classpath variables as -:

set path =c:\jdk1.2.1\bin;.;%path%
set classpath=c:\jdk1.2.1\lib\tools.jar;c:\jdk1.2.1\lib\rt.jar;.;%classpath%

Some packages have eithr tools.jar or rt.jar or both.

let me know if it still gives problems

-Visu
 
Brent Smith
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like your path needs to be set correctly. On Windows 98 etc go into the autoexec.bat file. On Windows 2000, right click "My Computer", then click "Properties", then choose the "Advanced" tab, finally click "Environment Variables". "Path" is one of the variables under "System Variables". Edit it to include the path to your jds. For example: c:\winnt\system32;c:\j2sdk1.4.2_04\bin; (make sure to included \bin, not just the j2sdk root directory). Once the path is set correctly you should be able to type c:\javac and have the option/help listing come up automatically. You should also set the "classpath" variable to include the current directory ("."). The classpath is included in the "System Variables" where "Path" is.

I suggest you go through sun's tutorial at http://java.sun.com/docs/books/tutorial/. Check out the "first cup of java" for Microsoft Windows.

Hope that helps.

Brent Smith
 
preethi bhat
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi iam preparing for scwcd.
i was tring to download software from sun site. help suggest me the right one.
1) iam already having jdk1.2.1 on my system(if u want me to dowmload any latest pls suggest me the right webpage)
2) i downloaded & installed j2sdk1.4.2_04 from sun's site.
3) i didnot set any path....but on C:when i type java-version i can get "java version 1.2.1" but when i tried typing javac -help iam getting a error msg.

does that mean i dont installed a compiler.
i tried typing "javac -help" at c:\jdk1.2.1 also.

i didnt installed tomcat yet may be i need more help from u guys again.

thanks
preethi
 
Bin Gao
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there,

You need to modify your registry according to the error message, if you are running Java over Windows. Sorry I cannot give you more detailed description about that.

Good luck
 
Bin Gao
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there,

You need to modify your registry according to the error message, if you are running Java over Windows. Sorry I cannot give you more detailed description about that.

Good luck
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic