LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



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

Rep: Reputation: 31
Java Package Problems


Howdy,

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
Javasnob
LQ Newbie
 
Registered: Sep 2005
Distribution: Arch
Posts: 19

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

Ex.

client@Computer:~/logisticsInfo$ javac Something.java

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

client@Computer:~/$javac logisticsInfo/Something.java

Hope I helped!
 
  


Reply


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


All times are GMT -5. The time now is 04:35 AM.

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