• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Javadoc illegal characters

 
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried running javadoc on my application and received a bunch of "illegal character" errors. I have no idea how to fix this, since nothing odd appears in the java file.


 
Ranch Hand
Posts: 174
Java ME Opera Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post here that line 4 of Software.java file.
 
Marshal
Posts: 68069
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
\191 appears to be 0xbf which is "¿". I am surprised that has been flagged as illegal.
 
Campbell Ritchie
Marshal
Posts: 68069
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too difficult a question for "beginning." Moving thread.
 
Mike Lipay
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Zandis Murāns wrote:Please post here that line 4 of Software.java file.



Here are the first several lines, #4 is /**

 
Campbell Ritchie
Marshal
Posts: 68069
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you been using a word processor to edit your code? They can insert strange control characters which are invisible on text editors.
 
Mike Lipay
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Have you been using a word processor to edit your code? They can insert strange control characters which are invisible on text editors.



I've been using a combination of WordPad at work, and PageSpinner at home. I don't know what WordPad does, but PS outputs plain text (basically an HTML editor).
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WordPad probably saves your source file as an RTF (Rich Text Format) document instead of a plain text file. The compiler ofcourse won't be able to parse your source file if it's saved as RTF.

Use something else - there are lots of good programmer's text editors available. I use Notepad++ sometimes, it's a popular and free text editor with syntax highlighting and other handy features. Or use an IDE such as NetBeans or Eclipse.
 
Campbell Ritchie
Marshal
Posts: 68069
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NotePad++ is an excellent product. Notepad2 and jEdit are good too. For those of us who usually use Linux, there are some nice built-in programming editors.
 
Mike Lipay
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, this is officially weird. I work at home (on a Mac ) and at work on a Windows XP ( ), so I keep my java programs on a flash drive. When I got home today I synced the two and tried javadoc on the flash version, received over 100 of the errors I posted above. For some unknown reason I tried javadoc on the newly synced version on my Mac and everything worked fine.
 
Campbell Ritchie
Marshal
Posts: 68069
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like an operating-system specific problem. There are differences in the formats of text files, for example Windows uses \r\n for line separator and older Macs use \r and newer Macs use \n (like *nix).
 
Mike Lipay
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I might agree if the sync didn't have any effect. Javadoc didn't work on either platform against the files on the flash drive; the Mac worked after syncing, but only on its' home drive. I'm curious to see what happens if I copy the files from the flash drive onto the Win drive.
 
Looky! I'm being abducted by space aliens! Me and this tiny ad!
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!