File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes new to java (error: package com.jgoodies.forms.* does not exist) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "new to java (error: package com.jgoodies.forms.* does not exist)" Watch "new to java (error: package com.jgoodies.forms.* does not exist)" New topic
Author

new to java (error: package com.jgoodies.forms.* does not exist)

Gerry McArdle
Greenhorn

Joined: Nov 18, 2011
Posts: 1
Hey all,

Nice to meet all of you, I've been reading some posts here and it seems like the right place to ask some questions.

I'm trying to transfere into a Software development course in my college, and the head of school sugested that i learn java before my interview, and show the panel a program that i made.

I've been reading "Headfirst Java" and "beginning Java" and have read through as far as the chapter on GUI's in both books. The program that i want to present will allow nurses to record and view patient observations (Temp, BP etc).

I've been using JFormDesigner 5 to build the GUI, and when i try to compile the code that its made for me i get the above error.

i have downloaded the jgoodies rar file and put it into the folder that i have the path property pointing to, (D:\Java) but still get this error.

I'm making a simple mistake somewhere. Can someone help? I'm sure i'll have more questions, but this is the one stopping me from doing anything at the minute.

Many thanks,
Gerry
Brian Burress
Ranch Hand

Joined: Jun 30, 2003
Posts: 123
Gerry,

First comment is that I will take your "path" statement literally. Make sure any archive files and class files are on the classpath, not the OS path.

I also can't say I have ever tried using a *.rar file (zip, jar, etc yes, but not a rar). At a glance it looks like this extention may be ok, but that may be one thing to check - assuming it is a zip/jar format and it does not work when defined on the classpath you may try renaming it to jar to see if that matters. I don't think it will as I am assuming that a fully qualified file name on the classpath will be ok.


For quick reference I am copying some jar/classpath examples from Classpath Wiki

java -classpath D:\myprogram;D:\myprogram\lib\supportLib.jar org.mypackage.HelloWorld
or alternatively:

set CLASSPATH=D:\myprogram;D:\myprogram\lib\supportLib.jar
java org.mypackage.HelloWorld
Vyas Sanzgiri
Ranch Hand

Joined: Jun 16, 2007
Posts: 686

Are you using any IDE for compiling? If not what command do you use and what is your directory structure?


===Vyas Sanzgiri===
My Blog
Vyas Sanzgiri
Ranch Hand

Joined: Jun 16, 2007
Posts: 686

Also, Welcome to JavaRanch Gerry McArdle !!

This forum has helped me through 3 certs and lots of queries. So keep posting and contributing. Many experts are here to help
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19783
    
  20

Brian Burress wrote:I also can't say I have ever tried using a *.rar file (zip, jar, etc yes, but not a rar). At a glance it looks like this extention may be ok, but that may be one thing to check - assuming it is a zip/jar format and it does not work when defined on the classpath you may try renaming it to jar to see if that matters. I don't think it will as I am assuming that a fully qualified file name on the classpath will be ok.

RAR files are very different from ZIP / JAR. It's also a compression format, but that's as far as the similarities go.

However, I know JGoodies Forms, and it doesn't come as a RAR file, only as a ZIP file. If Gerry really does have a RAR file it doesn't come from jgoodies.com.

Which leads me to the following: inside the latest official ZIP file there are two JAR files that would need to be added to the class path - jgoodies-forms-1.4.2.jar, and jgoodies-common-1.2.1.jar that can be found inside the lib folder inside the ZIP file. The former is the actual Forms library, the second its only dependency.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: new to java (error: package com.jgoodies.forms.* does not exist)