Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java Compiling Problems. Screenshot Included. 1

Status
Not open for further replies.

fanteja2000

Vendor
Mar 15, 2004
6
US
Hi
All,

Ok, here is the deal. I have NO previous experience in Java whatsoever. So I'm trying to compile a .java file using Netbeans IDE 3.6. I have the .java file, so I open it up, and change one SINGLE letter.. that is all I do! Not much! and I compile it and place it on the web to run it, it won't run! I always get that error down at the bottom. I tried this one, and an online compiler found at:


And even with that .class file after I put it up, nothing happens, when I put it up on the web, all there is just a blank grey screen.

What do I have to do?
 
Just post the error - putting screenshots on the web is all very well, but not if you require a username and password !!!
 
Whoops, sorry about that, it should work now. :)

The error is down at the bottom. some thing about deprication and such.
 
Well - it's still a bad idea to redirect people to screenshots, when your information is plain text.

Can't you mark the message in the window, and simply cut'n'paste it?

I'm not using netbeans, so I don't know where to set compiler-switches.
Find out, and use a adviced switch '-deprecation'.

When collecting experiences, old classes and concepts often show their disadvantages, and methods get marked deprecated.
That means, they are supported for compatibility-reasons, but you're told to replace them by an up-to-date, and better solution.
The positions are shown in detail if you use the 'deprecated'-switch.

In future your code may not work at all - the deprecated methods will vanish sometime.
But you get a compiled class with the switch.

For beginners, I strongly recommend starting with compiling from the commandline. You're closer to the compiler/ interpreter, and avoid an additional level of errors and complexity.

You need an IDE for more complicated stuff, multiple source-files etc., and shouldn't start with that.

seeking a job as java-programmer in Berlin:
 
Thanks mate. I will try and compile with commandline and see if that helps much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top