• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using JCreator  RSS feed

 
Tom Oskie
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to Java and I'm using JCreator as an IDE. My problem is: I have a code that is supposed to display a panel displaying a message and showing two buttons, but nothing happens although I get the message "process complete", which is an indication that there are no errors. Can anybody help?
 
Campbell Ritchie
Marshal
Posts: 56585
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch

I presume you are getting this error from the terminal window which appears and vanishes when you execute something. Which button are you pushing on JCreator? I presume it's the button which executes the application. Can you run it from the command line yourself?

If you don't get it sorted out in the next 5 minutes, please post your code (abbreviated version if it's long), and let's see what is happening.
 
Tom Oskie
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Campbell,

Thanks for your response. I did a little bit reading around and I'm guessing it's because I did not import Java swing. So I will try that and see what happens.

In any case, how do you run a piece of code from a command line? I understand that you will have to create a path to the bin folder in the "j2sdk" folder, etc. etc., but I don't know how to do this. Can you pleasse give me a step-by-step instructions on how I can run codes from a command line?

Thanks very much.
 
Campbell Ritchie
Marshal
Posts: 56585
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome

There are instructions about running a command-line application in the Java™ Tutorials. Look for the "Hello World" pages. The "common problems" page is also useful. If you can get JCreator to work, you might already have a PATH set, but there are instructions in the installation page; in the Windows instructions it's no 4. Remember you need a JDK, not a JRE. Do what it says to set permanently, and ignore what it says about "optional."
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!