Skip to main content



      Home
Home » Newcomers » Newcomers » Java compiler error in a comment(I'm confused)
Java compiler error in a comment [message #1780327] Sat, 20 January 2018 03:13 Go to next message
Eclipse UserFriend
I'm getting an error in a comment. The attachment is a screenshot.

This one is odd. I don't get the error when Eclipse builds automatically. I do when I right click on build.xml to do an Ant build.

Makes me suspect that more than one compiler is in the mix. Anybody know how to force the use of the built in javac?

Using Oxygen.
Re: Java compiler error in a comment [message #1780329 is a reply to message #1780327] Sat, 20 January 2018 06:20 Go to previous messageGo to next message
Eclipse UserFriend
It looks to me like it is using javac. But it's using the default system encoding and you appear to have Asian characters in your file so it's either UTF-8 encoded or UTF-16 encoded. Personally I'd avoid like the plague the use of any characters that require special encoding. In any case, maybe this link will help you with specifying an appropriate encoding for Ant: https://stackoverflow.com/questions/1339352/how-do-i-set-dfile-encoding-within-ants-build-xml

Re: Java compiler error in a comment [message #1780679 is a reply to message #1780329] Thu, 25 January 2018 11:34 Go to previous message
Eclipse UserFriend
Actually it was an old, I think, compilerarg. The encoding property needed to be specified as UTF-8. The compiler arg actually was causing some really strange errors.
Previous Topic:Installing Eclipse on Terminal Server
Next Topic:How to get Package Explorer to match Windows Explorer.
Goto Forum:
  


Current Time: Thu Jul 10 17:07:29 EDT 2025

Powered by FUDForum. Page generated in 0.08667 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top