Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
java packages
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Andrew Thompson, post: 615026"] Common Java package name nomenclature is to use all lower case for package names, and no '_' characters. [ Class names generally have EachWordStartUpperCase - while methods and attributes are - firstWordLowerCase. ] (snip JBuilder stuff) ... I suggest it is important to get that right first, so let's have a look.. [ Unfortunately, you cannot get very far without using packages. ] ... what is the *exact* command you are uing to compile the ..java source files and from which directory? For example, often the developer compiles from 'the top'. So if there is a package org.utils with source FileUtils.java the source might be put in folder.. C:\Projects\Java\BasicTools\org\utils\ ...which might be compiled from.. C:\Projects\Java\BasicTools\ ...then Java source file FileTool.java (in package 'utils') might be compiled by calling .. C:\Projects\Java\BasicTools\>javac org/utils/FileTool.java A class file with the correct package information should now be inside C:\Projects\Java\BasicTools\org\utils\. In closing, I will suggest that there is a better group for sorting such problems.. <[URL]http://www.physci.org/codes/javafaq.jsp#cljh[/URL]> HTH [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
java packages
Top