Results 1 to 5 of 5
- 01-16-2008, 02:57 AM #1
Member
- Join Date
- Jan 2008
- Posts
- 36
- Rep Power
- 0
Quick Help Please! Can't Run Code!!
I have Java 6 Update 4 installed on my computer as well as Eclipse Classic 3.3.1 (both downloaded and installed today)
When I go to Run -- > Run As inside Eclipse it shows (None Applicable)
can anyone tell me why this is and how to fix this? I cannot run anything :(! Seems as if its not detecting my Java
- 01-16-2008, 03:24 AM #2
it shows Run as Java Application if the code in the editor has main method ..
public static void main(String[] args)..dont worry newbie, we got you covered.
- 01-16-2008, 03:39 AM #3
Member
- Join Date
- Jan 2008
- Posts
- 36
- Rep Power
- 0
There's nothing wrong with the code
Heres a screenshot alsoJava Code://******************************************************************** // Lincoln.java Author: Lewis/Loftus // // Demonstrates the basic structure of a Java application. //******************************************************************** public class Lincoln { //----------------------------------------------------------------- // Prints a presidential quote. //----------------------------------------------------------------- public static void main (String[] args) { System.out.println ("A quote by Abraham Lincoln:"); System.out.println ("Whatever you are, be a good one."); } }

:confused: :confused: :confused:
- 01-16-2008, 03:47 AM #4
Now i see it ..
You need to define a project before you can execute a java code. I could not see any project in Package Explorer in the image.
Create new project. And paste that file to src folder of that project every thing will be alrightdont worry newbie, we got you covered.
- 01-16-2008, 03:54 AM #5
Member
- Join Date
- Jan 2008
- Posts
- 36
- Rep Power
- 0
Similar Threads
-
Simple version of quick sort
By Java Tip in forum AlgorithmsReplies: 0Last Post: 04-15-2008, 07:40 PM -
Wanna make 5 quick bucks?
By GodiaN in forum Java AppletsReplies: 5Last Post: 01-21-2008, 07:15 PM -
Quick Stupid Question
By bluekswing in forum New To JavaReplies: 7Last Post: 01-08-2008, 06:35 PM -
Quick Job required in Java
By taxman in forum Jobs OfferedReplies: 0Last Post: 01-02-2008, 11:46 AM -
Quick Question (Functions)
By ibanez270dx in forum New To JavaReplies: 2Last Post: 11-16-2007, 01:42 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks