Name: dbT83986 Date: 04/24/99
I eroneously jared up my java source rather than the class files.
I know it is stupid, but compilers spend 99% of their time
pointing out the stupid brain-dead activities of humans.
When I added the jar to the classpath & tried compiling I got
very confusing messages. I think the compiler should recognize
this mistake as a fatal error, and print a message like:
Error: Can not create temporary class from
jarFileName(javaFileName). Please ensure that a compiled version
of javaFileName is in jarFileName.
or perhaps just say that the class could not be found.
e.g.
cd lib
javac -d class java\expressionBrowser\*.java
jar -cf myJavaFiles.jar -C java .
cd ..\othersource
javac -classpath ..\lib\myJavaFiles.jar -d class java\*.java
..\lib\expressionBrowser.jar(expressionBrowser/DataSource.java): Public
interface expressionBrowser.DataSource must be defined in a file called "DataSo
urce.java".
..\lib\expressionBrowser.jar(expressionBrowser/DataSourceException.java
): Public class expressionBrowser.DataSourceException must be defined in a file
called "DataSourceException.java".
..\lib\expressionBrowser.jar(expressionBrowser/Browser.java): Public cl
ass expressionBrowser.Browser must be defined in a file called "Browser.java".
..\lib\expressionBrowser.jar(expressionBrowser/NameMapper.java): Public
interface expressionBrowser.NameMapper must be defined in a file called "NameMa
pper.java".
..\lib\expressionBrowser.jar(expressionBrowser/TreeTool.java): Public i
nterface expressionBrowser.TreeTool must be defined in a file called "TreeTool.j
ava".
..\lib\expressionBrowser.jar(expressionBrowser/TreeFrame.java): Public
class expressionBrowser.TreeFrame must be defined in a file called "TreeFrame.ja
va".
6 errors
(Review ID: 57390)
======================================================================
- duplicates
-
JDK-4098712 (diag) Better diagnostics for zipfile w/ sources
-
- Closed
-