Results 1 to 2 of 2
  1. #1
    k4ff1n34dd1c7 is offline Member
    Join Date
    Sep 2008
    Posts
    7
    Rep Power
    0

    Default Importing and running projects help

    I am semi new to eclipse and am having an issue with running a project.

    My professor will give me all .java files to run a program

    Method 1)
    In order to run it in eclipse i create a new project and import all the files into a package.

    I will receive no errors whatsoever but i go to run it and i get a file not found error in the consloe or a pop up box saying "Could not find main class program will exit"

    Method 2)
    I create a project from an existing source and all the files are there in a default package

    No errors again but when i go to run it i get a file not found error in the console or a pop up box saying "Could not find main class program will exit"

    Any programs i make and create the .java files for run perfectly its when i import the file things go haywire.

  2. #2
    k4ff1n34dd1c7 is offline Member
    Join Date
    Sep 2008
    Posts
    7
    Rep Power
    0

    Default

    I figured it out you need to redefine the jdk after each time i use it. since its on my flash drive the default sometimes gets screwy.

Similar Threads

  1. Group Projects
    By Zosden in forum Advanced Java
    Replies: 11
    Last Post: 06-03-2008, 03:47 AM
  2. Projects please
    By sudhir in forum Introductions
    Replies: 1
    Last Post: 12-17-2007, 01:42 PM
  3. Importing / compiling and running with .jar package
    By splinter64uk in forum New To Java
    Replies: 1
    Last Post: 12-05-2007, 02:47 AM
  4. Importing classes
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-06-2007, 02:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •