Jump to content


Jcreator Compiles My Code But Won't Run It.


  • Please log in to reply
6 replies to this topic

#1 Nap

Nap

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 17 August 2012 - 02:26 AM

Hi,

  I installed jCreator (5.00.018) on my standalone Windows Vista computer a few days ago.
  For a while everything worked fine.  Then I started getting a dialog box on exit informing me that my file has been modified asking me if I wanted to save it.  Something was wrong as I had saved my file already and not changed it in the short distance I had to move my mouse to the X button.
  So I uninstalled jCreator and tried Netbeans.

  Cut a long story short, I'm back to jCreator.  Battling with syntax and OOP is fine, but battling with the editor is not.
  This time I'm having another problem, so I'm posting here for help.

  When I click the play button (which builds and runs my program), jCreator only compiles my Hello World code. (Clicking the tool bar menu RUN File does the same thing.) It does this correctly and shows 'process complete' in the Build Output window.  When it moves onto the run stage, instead of executing my program, it spits out the java usage help info in the General Output window followed by 'process completed.'  No HELLO WORLD

  Initially I thought this might have something to do with Window's long file names (and spaces).  But I've tested in a folder that is 2 levels deep and there aren't any spaces.

The environment path variable is set correctly, Options/JDK Profiles has JDK version 1.7.0_05 in the window.

  Has anyone had this happen to them and know how to fix this?

Cheers,
Nap

#2 Nap

Nap

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 17 August 2012 - 06:37 AM

I've reinstalled Java, but it hasn't helped.

#3 nyccanuck

nyccanuck

    Advanced Member

  • Members
  • PipPipPip
  • 78 posts

Posted 17 August 2012 - 10:38 PM

View PostNap, on 17 August 2012 - 02:26 AM, said:

Hi,

  I installed jCreator (5.00.018) on my standalone Windows Vista computer a few days ago.
  For a while everything worked fine.  Then I started getting a dialog box on exit informing me that my file has been modified asking me if I wanted to save it.  Something was wrong as I had saved my file already and not changed it in the short distance I had to move my mouse to the X button.
  So I uninstalled jCreator and tried Netbeans.

  Cut a long story short, I'm back to jCreator.  Battling with syntax and OOP is fine, but battling with the editor is not.
  This time I'm having another problem, so I'm posting here for help.

  When I click the play button (which builds and runs my program), jCreator only compiles my Hello World code. (Clicking the tool bar menu RUN File does the same thing.) It does this correctly and shows 'process complete' in the Build Output window.  When it moves onto the run stage, instead of executing my program, it spits out the java usage help info in the General Output window followed by 'process completed.'  No HELLO WORLD

  Initially I thought this might have something to do with Window's long file names (and spaces).  But I've tested in a folder that is 2 levels deep and there aren't any spaces.

The environment path variable is set correctly, Options/JDK Profiles has JDK version 1.7.0_05 in the window.

  Has anyone had this happen to them and know how to fix this?

Cheers,
Nap

What I believe is happening is that you are opening your program through windows explorer.
Open JCreator, make sure that you have the JCreator Start Page tab, then open your file.  If the Start tab is not present, then your file will not run.

#4 Nap

Nap

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 17 August 2012 - 11:44 PM

View Postnyccanuck, on 17 August 2012 - 10:38 PM, said:

What I believe is happening is that you are opening your program through windows explorer.
Open JCreator, make sure that you have the JCreator Start Page tab, then open your file.  If the Start tab is not present, then your file will not run.
@NYC,
  Thnx!
  By opening jCreator and selecting View/Start Page, and THEN opening the Java program Page makes all the difference.
  It's running now.
  BTW, I'm a Canadian's fan, but won't hold it against you ;)


@Developers:  Why is it necessary to have the Start Page open before loading a program?
  Oh well, it's working now, so I can get back to developing my assignment.


Cheers,
Nap

#5 nyccanuck

nyccanuck

    Advanced Member

  • Members
  • PipPipPip
  • 78 posts

Posted 18 August 2012 - 03:14 PM

View PostNap, on 17 August 2012 - 11:44 PM, said:

@NYC,
  Thnx!
  By opening jCreator and selecting View/Start Page, and THEN opening the Java program Page makes all the difference.
  It's running now.
  BTW, I'm a Canadian's fan, but won't hold it against you ;)


@Developers:  Why is it necessary to have the Start Page open before loading a program?
  Oh well, it's working now, so I can get back to developing my assignment.


Cheers,
Nap

The developers are aware of the issue and are working on it.

#6 sevisu

sevisu

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 31 August 2012 - 12:38 PM

View PostNap, on 17 August 2012 - 02:26 AM, said:

Hi,

  I installed jCreator (5.00.018) on my standalone Windows Vista computer a few days ago.
  For a while everything worked fine.  Then I started getting a dialog box on exit informing me that my file has been modified asking me if I wanted to save it.  Something was wrong as I had saved my file already and not changed it in the short distance I had to move my mouse to the X button.
  So I uninstalled jCreator and tried Netbeans.

  Cut a long story short, I'm back to jCreator.  Battling with syntax and OOP is fine, but battling with the editor is not.
  This time I'm having another problem, so I'm posting here for help.

  When I click the play button (which builds and runs my program), jCreator only compiles my Hello World code. (Clicking the tool bar menu RUN File does the same thing.) It does this correctly and shows 'process complete' in the Build Output window.  When it moves onto the run stage, instead of executing my program, it spits out the java usage help info in the General Output window followed by 'process completed.'  No HELLO WORLD

  Initially I thought this might have something to do with Window's long file names (and spaces).  But I've tested in a folder that is 2 levels deep and there aren't any spaces.

The environment path variable is set correctly, Options/JDK Profiles has JDK version 1.7.0_05 in the window.

  Has anyone had this happen to them and know how to fix this?

Cheers,
Nap

We are having the same problem here in Mansfield ISD...it is a big problem because I have a class of students that can't run.   I believe it has to do with protection and access to the java interpreter.   I have been using JCreator for 9 years and have never had these problems.   I know we have it all installed correctly...but Windows 7 is new and we used Java 7.   My plan is to: use Netbeans, or go back to XP, and/or go back to Java 6.  I posted a few days ago and get no response.   I will also probably try to contact JCreator directly today.   We can't afford to waste anymore classtime on this.

#7 nyccanuck

nyccanuck

    Advanced Member

  • Members
  • PipPipPip
  • 78 posts

Posted 31 August 2012 - 03:43 PM

View Postsevisu, on 31 August 2012 - 12:38 PM, said:

We are having the same problem here in Mansfield ISD...it is a big problem because I have a class of students that can't run.   I believe it has to do with protection and access to the java interpreter.   I have been using JCreator for 9 years and have never had these problems.   I know we have it all installed correctly...but Windows 7 is new and we used Java 7.   My plan is to: use Netbeans, or go back to XP, and/or go back to Java 6.  I posted a few days ago and get no response.   I will also probably try to contact JCreator directly today.   We can't afford to waste anymore classtime on this.

Did you check the read / write access of the students?
Your network / IT folks should be able to provide them with some limited access if that is the problem.
I have been using Win7 for the past few years and have not had significant issues with either Le or Pro (Pro more than Le if anything).
I have been running Java 7 for the past year and there does seem to be quirks with that more than 6, so maybe try to roll back the version on one machine and see what happens, but I believe that it is a network issue more than a JCreator issue.