javadoc: error - Illegal package name: ""

When I try to generate javadoc through IntelliJ IDEA 5.1.2 I get this result:

/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/javadoc -package -splitindex -author -version

-classpath /Users/jonsjoberg/Desktop/mysql-connector-java-3.1.13/mysql-connector-java-3.1.13-bin.jar

-sourcepath /Users/jonsjoberg/programmering/storage/src -d

/Users/jonsjoberg/programmering/storage

/Users/jonsjoberg/programmering/storage/src/GeneralFunctions.java se.rifotech.databasefunctions

/Users/jonsjoberg/programmering/storage/src/MainWindow.java

/Users/jonsjoberg/programmering/storage/src/HistoryTableModel.java

/Users/jonsjoberg/programmering/storage/src/databaseStatements.java

/Users/jonsjoberg/programmering/storage/src/RedListTableModel.java

/Users/jonsjoberg/programmering/storage/src/OpenWindows.java

/Users/jonsjoberg/programmering/storage/src/EntityWindow.java

/Users/jonsjoberg/programmering/storage/src/ShowAllTableModel.java

/Users/jonsjoberg/programmering/storage/src/ShowAllWindow.java

/Users/jonsjoberg/programmering/storage/src/HistoryWindow.java

Loading source file /Users/jonsjoberg/programmering/storage/src/GeneralFunctions.java...

Loading source file /Users/jonsjoberg/programmering/storage/src/MainWindow.java...

Loading source file /Users/jonsjoberg/programmering/storage/src/HistoryTableModel.java...

Loading source file /Users/jonsjoberg/programmering/storage/src/databaseStatements.java...

Loading source file /Users/jonsjoberg/programmering/storage/src/RedListTableModel.java...

Loading source file /Users/jonsjoberg/programmering/storage/src/OpenWindows.java...

Loading source file /Users/jonsjoberg/programmering/storage/src/EntityWindow.java...

Loading source file /Users/jonsjoberg/programmering/storage/src/ShowAllTableModel.java...

Loading source file /Users/jonsjoberg/programmering/storage/src/ShowAllWindow.java...

Loading source file /Users/jonsjoberg/programmering/storage/src/HistoryWindow.java...

javadoc: error - Illegal package name: ""

Loading source files for package se.rifotech.databasefunctions...

1 error

javadoc exited with exit code 1

What seems to be the problem? Is it in my code? In HistoryWindow?

[2348 byte] By [jonsja] at [2007-10-3 1:34:34]
# 1

Apparently Javadoc is not seeing the string "se.rifotech.databasefunctions"

It's expecting to see that subdirectory at:

/Users/jonsjoberg/programmering/storage/se/rifotech/databasefunctions

Is that where it is?

I wonder if there is a newline in the javadoc command ahead of that package name.

-Doug

dhkramera at 2007-7-14 18:32:35 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
Yes, the package is there.. When I tried to do a javadoc at that package anlone se.rifotech.databasefuncions it worked.No, there's no new line, I just edited it so that it would look better here..
jonsja at 2007-7-14 18:32:35 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 3

My previous analysis was incorrect -- I had overlooked the line "Loading source files for package se.rifotech.databasefunctions...", so that package is being loaded.

The error message means it's encountered an empty string on the command line that it's trying to process as a package name.

I'm not familiar with how IntelliJ runs javadoc. It's interesting that the error Illegal package name "" occurs before the loading of the databasefuncitons package. That tells me there is possibly something before the line "se.rifotech.databasefunctions". I would make sure there are no newlines in the entire command.

BTW, are you use you want to use the -package option? That is somewhat unusual. It says you want to document the package-private members. People often mistakenly think it means they want to document packages.

http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#package

-Doug

dhkramera at 2007-7-14 18:32:35 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...