Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-27-2005, 12:16 PM   #1
Registered: Jul 2005
Location: Texas
Distribution: RHEL4 - ES
Posts: 178

Rep: Reputation: 31
Java Package Problems


I wrote a dandy little program in Eclipse, with all the classes being declared in a package "logisticsInfo" Everything worked fine. However, when I compile this same program from the command line, it says it can't find the objects in a subdirectory "logisticsInfo". Can anyone help me as to what exactly is going on and how to fix it? Thanks so much
Old 09-27-2005, 02:39 PM   #2
LQ Newbie
Registered: Sep 2005
Distribution: Arch
Posts: 19

Rep: Reputation: 0
Make sure you're not in the package when you compile.


client@Computer:~/logisticsInfo$ javac

won't work, you need to do it from the parent directory:

client@Computer:~/$javac logisticsInfo/

Hope I helped!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing java without using the package zwyrbla Slackware 9 01-25-2005 07:40 PM
Where is java 1.4.2_06 package acanton Slackware 2 12-27-2004 09:05 AM
Java Package problem? redshadow Programming 1 03-26-2004 08:27 AM
Java can't find package, but PATH set correctly (j2se1.4.0, java.util.regex package) Ethan Programming 5 02-06-2004 10:55 PM
get startet with java (package) j-ray Programming 2 02-01-2002 04:03 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration