Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 03-01-2009, 04:47 PM   #1 (permalink)
Boom Boom Boom
 
cooldudie3's Avatar
 
Join Date: Jul 2007
Location: MACHEAVEN
Posts: 741
Default javac.exe automatically closing


I am new to Java and I have downloaded the Java SE 6 SDK. I have finished programming my EXAMPLE.java program but I run javac.exe, it doesn't work. It opens, but after a second the command prompt window closes. I try many times but still does not work. Then I try to drag the .java file to the javac.exe. I get a .class file(successful) but according to "Java: A Beginner's Guide 4th Edition", I can open the javac.exe and type a command so it works. It is time consuming to drag the files. And when I run the .class file, java.exe does not work. The same thing happens, the window opens for a second, then closes. But there are like words before it closes but it is too fast to be seen. This is annoying and I am disappointed in Sun/Java. Does anyone have a solution?
JDK 6 Update 11 installed
Windows XP Pro SP3 system

Update:
I have scanned javac.exe with KAV and reported no viruses, trojans or malware.
I have tried to "Print Screen" but it's waay to fast!
__________________
I'm back! Gimme a hugggggg... :D
cooldudie3 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 03-01-2009, 11:56 PM   #2 (permalink)
CAFEBABE
 
chandru.in's Avatar
 
Join Date: Mar 2008
Location: Bangalore
Posts: 474
Default Re: javac.exe automatically closing

Quote:
Originally Posted by cooldudie3 View Post
This is annoying and I am disappointed in Sun/Java.
You are new to something and don't know how to use it. Then you blame it and get annoyed and disappointed with it. That is very funny.

Could you please tell me where you learnt Java from? These kind of knee jerk reactions will not help you learn anything.
__________________
Chandru

http://tuxychandru.blogspot.com
chandru.in is offline  
Old 04-01-2009, 06:32 AM   #3 (permalink)
Boom Boom Boom
 
cooldudie3's Avatar
 
Join Date: Jul 2007
Location: MACHEAVEN
Posts: 741
Default Re: javac.exe automatically closing

I have a book!! "Java: A Beginner's Guide"
__________________
I'm back! Gimme a hugggggg... :D
cooldudie3 is offline  
Old 04-01-2009, 07:19 AM   #4 (permalink)
Wahahaha~!
 
Faun's Avatar
 
Join Date: Dec 2006
Location: Pune/there
Posts: 7,676
Default Re: javac.exe automatically closing

well...i can understand your problem. Please stop java programming now. Thats the very best advice I can give...lol
__________________
Blog | Flickr | Battlelog
Spoiler:
Asus Z68 V-Pro|i5 2500k|TRUE Black|Ripjaws X|U2311H|N560GTX|D7000|XONAR STX|RE272|RE0|CC51|XE200PRO Walnut| TD II V2| Ultraphile|N5800

Mono

Last edited by Faun; 04-01-2009 at 07:27 AM.
Faun is offline  
Old 04-01-2009, 09:05 AM   #5 (permalink)
Always confused
 
vamsi360's Avatar
 
Join Date: May 2008
Location: Mandriva Control Center
Posts: 349
Smile Re: javac.exe automatically closing

Quote:
Originally Posted by T159 View Post
well...i can understand your problem. Please stop java programming now. Thats the very best advice I can give...lol
lol


The problem is you have to open javac.exe in command prompt dude and you have to give one parameter.
Add C:\Program Files\Java\jdk1.6.0\bin to Path section under system variables in environmental variables ( in my computer propreties )

Now got cmd where you saved your .java file and type

javac filename.java and then
java classname

COOL!
__________________
Vamsi Subhash
visit my blog at www.vamsisubhash.co.cc and taste a bit of IT!
vamsi360 is offline  
Old 04-01-2009, 09:29 PM   #6 (permalink)
Wahahaha~!
 
Faun's Avatar
 
Join Date: Dec 2006
Location: Pune/there
Posts: 7,676
Default Re: javac.exe automatically closing

^^actually some people like to double click every exe they see and command line is like a call of chuthullu for them.

@cooldudie3 if you really want to learn a programming language then first get familiar with basic os concepts.

You may have to set the classpath for java bin directory in win xp or any other os before you may be able to compile it from command line directly.

Open a command prompt. To do that type "cmd" in run dialog box (access it from Start menu).
...oh snap it will be a pain to write that all down.

Kindly refer to the tutorial (written by me for beginners like you)

Link: http://t.webofgoo.com/2008/01/03/a-b...raoch-to-java/
__________________
Blog | Flickr | Battlelog
Spoiler:
Asus Z68 V-Pro|i5 2500k|TRUE Black|Ripjaws X|U2311H|N560GTX|D7000|XONAR STX|RE272|RE0|CC51|XE200PRO Walnut| TD II V2| Ultraphile|N5800

Mono
Faun is offline  
Closed Thread

Bookmarks

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xdrive Closing saipothuri Technology News 8 17-11-2008 01:10 AM
Why is everything closing itself.?? Virus, i think... pls help........ ranjodh Software Q&A 7 07-02-2008 09:23 PM
ORKUT closing ! ! ! ax3 Internet & WWW 3 26-03-2007 12:25 PM
Closing an account ra_sriniketan Software Q&A 5 28-07-2006 04:27 PM
I.E 6 keeps closing itself down rohanbee QnA (read only) 22 04-11-2004 02:18 PM

 
Latest Threads
- by gforz
- by soumya
- by Sujeet
- by icebags
- by Charan

Advertisement




All times are GMT +5.5. The time now is 03:04 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2