• Post Reply Bookmark Topic Watch Topic
  • New Topic

Newbie Forte JAR question.  RSS feed

Larry Lindstrom
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Experts:
I'm still pretty new at Java, but I've built and used
JARs from the command line.
I've never built a JAR from within Forte, I'd like to use it to build the JAR for the Java Communications API demo BlackBox.
I knew I'd have problems compiling the main module BlackBox.java, but I wanted to see what errors were reported.
Some comm API types weren't found, so I went to project settings and added Comm.jar to FastJavac's classpath. That fixed the missing Comm types for he compiler.
Types defined in the 19 .java files weren't found either. This didn't surprise me. I know I need to build a Jar with these classes.
Working from the makefile in the BlackBox I start compiling the .java files. When I get to a source called ByteStatistics.java the compiler complains about a missing class that was I has just compiled.
So I bring up JAR packager and create the identify the new JAR archive under the blackbox package. I check "Mount as Separate Filesystem, I don't remember why, but I think I read that it was advantagious. I select the files I've already built, including the one that has the missing class, and add them to the new JAR.
I look at blackbox.jar, The files I've included are there, but each of their icons has a small x in a red box. When I lay the cursor on them a small box pops up with "Errors during class introspection (ClassNotFoundException)
I've read a little about introspection in the 21 day book, but I don't know much about it. I don't know why I have a problem with it.
Anyway... I come back and compile ByteStatistics, and get the same error "Class BufferSize not found in type declaration or import".
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!