Forums Register Login

Compiling Pacakage

+Pie Number of slices to send: Send
I have three packages. All three packages are under one package(main package). The structure is like:
MainPackage
+-
package1
+-
package2
+-
package3

In my code pacakge2 doesn't import any other two packages. So it compiles fine. package3 imports package2. When I compile package3, the error "MainPackage.package2 does not exist". Can anyone help me where am wrong?

Thanks ranchers.
+Pie Number of slices to send: Send
Please tell us exactly what you are doing.
I shan't be around to reply later myself, I am afraid.
CR
+Pie Number of slices to send: Send
I am trying to compile java files in those packages. But I end up with compile error.
+Pie Number of slices to send: Send
Add the all ready compiled packages to your class-path.
+Pie Number of slices to send: Send
Still having trouble with compilation. Does it have another command to compile the packages? or just ordinary like javac myfile.java?
+Pie Number of slices to send: Send
Thanks all.

I fixed the error. Now it works perfect.
grapes are vegan food pellets. Eat this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 822 times.
Similar Threads
Eclipse v3 and package Explorer
using javadoc
Please heeelp..Can't get "packages" to work
importing packages in a class
foreach - relative path directory listings
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:57:06.