Register FAQ Calendar Search Today's Posts Mark Forums Read

Go Back   Java Programming Forums > Java Programming > New to Java

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-07-2008, 11:10 AM
Junior Member
 
Join Date: Jul 2008
Posts: 6
sepalm is on a distinguished road
Default javac.exe problem

I've been reading herbert schildts "java for beginners" and it says in order to compile raw code, i should open javac.exe, and type in x command.

however when i load javac, it appears, loads up the help console, but disappears before i can do anything. i've tried running it as an administrator, i've tried turning my antivirus software off, but nothing makes a difference.

Up to now i've been using the netbeans IDE to do all of my coding, but i wanted to learn how to code from absolute scratch.

Any help would be much appreciated.

Simon
Reply With Quote
  #2 (permalink)  
Old 10-07-2008, 11:28 AM
JavaPF's Avatar
Java Programmer
 
Join Date: May 2008
Location: Deep inside the Eclipse IDE
Posts: 172
JavaPF will become famous soon enoughJavaPF will become famous soon enough
Default Re: javac.exe problem

Hey sepalm,

Please take a look at these links. It should help:

javac.exe : Java Glossary

"Hello World!" for Microsoft Windows (The Java™ Tutorials > Getting Started > The "Hello World!" Application)

If you are still having problems after reading this then reply here and we will see what we can do...
Reply With Quote
  #3 (permalink)  
Old 10-07-2008, 01:08 PM
Member
 
Join Date: May 2008
Posts: 58
Engineeringserver.com is on a distinguished road
Default Re: javac.exe problem

Quote:
Originally Posted by sepalm View Post
I've been reading herbert schildts "java for beginners" and it says in order to compile raw code, i should open javac.exe, and type in x command.

however when i load javac, it appears, loads up the help console, but disappears before i can do anything. i've tried running it as an administrator, i've tried turning my antivirus software off, but nothing makes a difference.

Up to now i've been using the netbeans IDE to do all of my coding, but i wanted to learn how to code from absolute scratch.

Any help would be much appreciated.

Simon


if you are using windowsxp~ you can do -> run -> cmd -> javac - parameters.
Reply With Quote
  #4 (permalink)  
Old 10-07-2008, 01:52 PM
Junior Member
 
Join Date: Jul 2008
Posts: 6
sepalm is on a distinguished road
Default Re: javac.exe problem

Unfortunately i'm using vista.

I've got the same tutorials pretty much, problem is, executing javac.exe.

C:\Program Files\Java\jdk1.6.0_03\bin\javac.exe

I open it, and the cmd prompt opens, displays (what i presume is the help console) and disappears before i can type anything.

Any ideas? wouldn't be anything to do with not having the most up to date java would it?

Simon
Reply With Quote
  #5 (permalink)  
Old 10-07-2008, 02:03 PM
JavaPF's Avatar
Java Programmer
 
Join Date: May 2008
Location: Deep inside the Eclipse IDE
Posts: 172
JavaPF will become famous soon enoughJavaPF will become famous soon enough
Default Re: javac.exe problem

Quote:
Originally Posted by sepalm View Post
Unfortunately i'm using vista.

I've got the same tutorials pretty much, problem is, executing javac.exe.

C:\Program Files\Java\jdk1.6.0_03\bin\javac.exe

I open it, and the cmd prompt opens, displays (what i presume is the help console) and disappears before i can type anything.

Any ideas? wouldn't be anything to do with not having the most up to date java would it?

Simon
Im not sure if you can run javac.exe like that. I think you need to open a command window (Start > Run > CMD) and navigate to:

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

using the 'cd' command to change directories then type javac.exe

It should load up OK then...
Reply With Quote
  #6 (permalink)  
Old 10-07-2008, 02:14 PM
Junior Member
 
Join Date: Jul 2008
Posts: 6
sepalm is on a distinguished road
Default Re: javac.exe problem

I apologise for being a dunce, as i've only used IDE's i never knew that.

Thanks alot for the help
Reply With Quote
  #7 (permalink)  
Old 10-07-2008, 02:18 PM
JavaPF's Avatar
Java Programmer
 
Join Date: May 2008
Location: Deep inside the Eclipse IDE
Posts: 172
JavaPF will become famous soon enoughJavaPF will become famous soon enough
Default Re: javac.exe problem

No problem!

If you have any further questions then be sure to post back
Reply With Quote
  #8 (permalink)  
Old 10-07-2008, 03:11 PM
Member
 
Join Date: May 2008
Posts: 58
Engineeringserver.com is on a distinguished road
Default Re: javac.exe problem

Quote:
Originally Posted by JavaPF View Post
Im not sure if you can run javac.exe like that. I think you need to open a command window (Start > Run > CMD) and navigate to:

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

using the 'cd' command to change directories then type javac.exe

It should load up OK then...
If you have setup the classpath correctly you can type javac instead of going to the java directory.
Reply With Quote
  #9 (permalink)  
Old 11-07-2008, 12:09 AM
Junior Member
 
Join Date: Jul 2008
Posts: 6
sepalm is on a distinguished road
Default Re: javac.exe problem

how do i set it up so that i dont have to cd C:\(path) every time i open cmd to compile?
Reply With Quote
  #10 (permalink)  
Old 11-07-2008, 09:54 AM
Member
 
Join Date: May 2008
Posts: 58
Engineeringserver.com is on a distinguished road
Default Re: javac.exe problem

It should have been done automatically when you install java but if not you can set it in your enviroment variables setting like this:
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Custom Search
100 most searched terms
Search Cloud
"bad endpoint type" com.sun.xml.internal.messaging.saaj.soapexceptionimpl com.sun.xml.internal.messaging.saaj.soapexceptionimpl: bad endpoint type com.sun.xml.internal.messaging.saaj.soapexceptionimpl: java.security.privilegedactionexception com.sun.xml.internal.messaging.saaj.soapexceptionimpl: java.security.privilegedactionexception: com.sun.xml.internal.messaging.saaj.soapexceptionimpl: java.security.privilegedactionexception: com.sun.xml.internal.messaging.saaj.soapexceptionimpl: message send failed com.sun.xml.internal.messaging.saaj.soapexceptionimpl: message send failed com.sun.xml.messaging.saaj.soapexceptionimpl: java.security.privilegedactionexception com.sun.xml.messaging.saaj.soapexceptionimpl: java.security.privilegedactionexception: com.sun.xml.messaging.saaj.soapexceptionimpl: message send failed convert arraylist to map date_format_now eclipse shortcut keys ejb3 quartz java convert double to binary java forum java forums java jtextarea bold java jtextarea color java jtextarea font java jtextarea font size java programmer forum java programmers forum java programming forum java programming forums java read last line java read last line of file java sendkeys java.security.privilegedactionexception java.security.privilegedactionexception: com.sun.xml.internal.messaging.saaj.soapexceptionimpl java.security.privilegedactionexception: com.sun.xml.internal.messaging.saaj.soapexceptionimpl: bad response java.security.privilegedactionexception: com.sun.xml.internal.messaging.saaj.soapexceptionimpl: message send failed java.security.privilegedactionexception: com.sun.xml.messaging.saaj.soapexceptionimpl: message send failed javapf javaprogrammingforums jtextarea bold jtextarea font jtextarea font color jtextarea font size programing forums programming forums reset jcombobox saaj0008 saaj0008: bad response; bad request saaj0008: bad response; not found severe: saaj0008 severe: saaj0008: bad response; bad request severe: saaj0008: bad response; not found soap java.security.privilegedactionexception soapexceptionimpl: bad endpoint type textpad java

All times are GMT. The time now is 01:25 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.