• Post Reply Bookmark Topic Watch Topic
  • New Topic

Strange Error: What Does It Mean?  RSS feed

 
Levi Neuxell
Ranch Hand
Posts: 41
Clojure Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

My program seems to be in working condition, but then I get this... any ideas why it's happening? I'd be more than happy to show my full code, but it would be hard for me to show bits and pieces as I have no clue what's possibly causing this (I don't know if the problem is an object, class, method, etc.)...

Also, I glanced over all the topic areas and couldn't find anywhere for any kind of tech support (in the Java section, at least). This is Java-related due to it being a JCreator problem.
 
Mansukhdeep Thind
Ranch Hand
Posts: 1163
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the command that you fired from the command prompt?
 
Levi Neuxell
Ranch Hand
Posts: 41
Clojure Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using JCreator, and set it to use cmd prompt to run the program (I have yet to create a GUI). So this occurs when I run my program. I believe this began happening once I started using more objects to get my variables from a class (class aVars [meaning all variables; it contains all the variables that are using inter-classically (not sure if that's the term, but I think you get the point)]).
 
Mansukhdeep Thind
Ranch Hand
Posts: 1163
Eclipse IDE Firefox Browser Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not try running your program directly from command prompt yourself. When using the IDE, use it completely. In this case , you are making some error while configuring the command prompt from inside the IDE.
 
Levi Neuxell
Ranch Hand
Posts: 41
Clojure Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well it's worked before, and I haven't changed anything since it did last work. I'll go through and check all the settings thoroughly and get back to you on it (I might have changed something, I'm not sure). <3
Yeah, it seems like it might have something to do with my program itself... I'll try Eclipse and see if that changes anything.

I think you were right, it was probably something I configured incorrectly. Anyways, using Eclipse Juno worked perfectly - thanks for helping!
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Levi Neuxell wrote:I'm using JCreator, and set it to use cmd prompt to run the program (I have yet to create a GUI). So this occurs when I run my program. I believe this began happening once I started using more objects to get my variables from a class (class aVars [meaning all variables; it contains all the variables that are using inter-classically (not sure if that's the term, but I think you get the point)]).

I don't mean to put you down, but starting out by using an IDE is not the best way to go IMO (and I don't think I'm alone).

What you are seeing is the DOS screen you get when a command (in this case, the java command) has been executed incorrectly. Now without seeing every screen that you've used inside JCreator to generate that command - and we don't want to - there could be almost any number of reasons why it's wrong. My suspicion is that you've changed some options for the java command, and what you've entered is invalid.

However, as Mansukhdeep said, you're far better off - at least at this stage - learning how to create Java programs and projects from scratch. Use a regular text editor (if you're using Windows, I personally quite like Notepad+) to create your source, and the command line to enter your javac, java and jar commands. In a few months, when you've got a couple of moderate-size projects under your belt, then might be the time to think about an IDE.

Winston
 
Levi Neuxell
Ranch Hand
Posts: 41
Clojure Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see what you're saying. So is there an easy explanation for how to run a program from notepad++ or do I need to find a quick tutorial somewhere? I don't mind - whatever helps, y'know? ^^

Also, I write my programs from scratch and only use the IDEs to do 2 things: run the program and find the simplest of mistakes, like a forgotten semi-colon. So if notepad++ can still be used to run these programs then I'll do it, because finding the problems is not hard at all. I use what I know and try to implement new things, and by doing so I pretty much know exactly what goes wrong (well, what mistakes I made).
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Winston Gutkowski wrote: . . . I personally quite like Notepad+ . . .
You sure? Don’t you mean Notepad++? An excellent product . The Notepad which comes with Windows® is not at all good for programming.
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Running a car wash app from the command line hardly differs from running a Hello, World app. Make sure to look at the for Windows links, not the NetBeans links.
The common problems page is particularly useful
 
Levi Neuxell
Ranch Hand
Posts: 41
Clojure Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since when does a Hello, World application use objects, multiple methods, switches, and variables? =3 Kidding haha, but I see what you're saying: both are pretty simple. Thank you for the reference.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!