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="frank, post: 615023"] trying to make a java application to use packages now and having lots of problems and i don't know why. Just added to the top of each source file package DBS_Intercept; Compiled and and got the followig errors from Jbuilder "DBS.java": Package C:\data\JBFSA\may_05_demo_code\DBS_Intercept\DBS.java stated in source DBS_Intercept does not match directory C:\data\JBFSA\may_05_demo_code\DBS_Intercept\DBS.java. at line 37, column 9 "XSS.java": Package C:\data\JBFSA\may_05_demo_code\DBS_Intercept\XSS.java stated in source DBS_Intercept does not match directory C:\data\JBFSA\may_05_demo_code\DBS_Intercept\XSS.java. at line 14, column 9 "JBFSAUtility.java": Package C:\data\JBFSA\may_05_demo_code\DBS_Intercept\JBFSAUtility.java stated in source DBS_Intercept does not match directory C:\data\JBFSA\may_05_demo_code\DBS_Intercept\JBFSAUtility.java. at line 13, column 9 "XSSDP.java": Package C:\data\JBFSA\may_05_demo_code\DBS_Intercept\XSSDP.java stated in source DBS_Intercept does not match directory C:\data\JBFSA\may_05_demo_code\DBS_Intercept\XSSDP.java. at line 15, column 9 "RunDBS.java": Package C:\data\JBFSA\may_05_demo_code\DBS_Intercept\RunDBS.java stated in source DBS_Intercept does not match directory C:\data\JBFSA\may_05_demo_code\DBS_Intercept\RunDBS.java. at line 10, column 9 "CSDSMsg.java": Package C:\data\JBFSA\may_05_demo_code\DBS_Intercept\CSDSMsg.java stated in source DBS_Intercept does not match directory C:\data\JBFSA\may_05_demo_code\DBS_Intercept\CSDSMsg.java. at line 16, column 9 It's complaining about the package line in each case. Now if I use a normal javac compile for each class it complains about not finding the classes in each of the files (now because of the package statement). Don't use packages it works fine. Never have a lot of luck with packages I must be missing something fundamental here. The source and class files are to all be in same directory DBS_Intercept Any thoughts? Thanks, Frank [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
java packages
Top