• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Compiling JavaBeans

 
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,
I'm struck at compiling JavaBeans which are packed inside a package. Here is how it looks like (BTW I'm not using any IDE):

I have the JDK lib and .(current dir) in my CLASSPATH env variable.
I'm compiling the two files like this:
javac -d D:\workspace\ab\WEB-INF\classes A.java
This works

But, when i try to compile the other file, as shown here:
set CLASSPATH=D:\workspace\ab\WEB-INF\classes\com\somecomp\foo\Author.class;%CLASSPATH%
javac -d D:\workspace\ab\WEB-INF\classes B.java

I get a compilation error saying-
error: error reading D:\workspace\ab\WEB-INF\classes\com\somecomp\foo\Author.class; java.util.zip.ZipException: error in opening zip file
........ cannot find symbol

Pls. help
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nothing to do with JSP.

Moved to Java in General.
 
The overall mission is to change the world. When you've done that, then you can read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic