• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using JCreator

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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."
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic