#7064 closed defect (invalid)
Josm core will not completely compile, and crashes at "Run"
Reported by: | gpermant | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
- Downloaded (updated) newest stat of JOSM core from repository
- Completely build it
- Start JOSM from class org.openstreetmap.josm.gui.MainApplication
What is the expected result? Errorless build of Josm, Josm should run.
What happens instead?
- Errors in compilation in file org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource
- after successfull connection to http://api.openstreetmap.org/api, Josm program fails due to compilation error
Please provide any additional information below. Attach a screenshot if
possible.
Build-Date: 2011-11-16 14:21:57 Revision: 4596 Is-Local-Build: true Identification: JOSM/1.5 (4596 SVN de) Memory Usage: 59 MB / 865 MB (38 MB allocated, but free) Java version: 1.6.0_27, Sun Microsystems Inc., Java HotSpot(TM) 64-Bit Server VM Operating system: Windows 7 Plugin: openstreetbugs Plugin: turnrestrictions java.lang.Error: Unresolved compilation problems: The import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen cannot be resolved The import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen cannot be resolved The import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen cannot be resolved MapCSSParser cannot be resolved to a type MapCSSParser cannot be resolved to a type TokenMgrError cannot be resolved to a type ParseException cannot be resolved to a type The method logError(Throwable) in the type StyleSource is not applicable for the arguments (ParseException) ParseException cannot be resolved to a type at org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource.<init>(MapCSSStyleSource.java:22) at org.openstreetmap.josm.gui.mappaint.MapPaintStyles.fromSourceEntry(MapPaintStyles.java:174) at org.openstreetmap.josm.gui.mappaint.MapPaintStyles.readFromPreferences(MapPaintStyles.java:151) at org.openstreetmap.josm.gui.preferences.MapPaintPreference.initialize(MapPaintPreference.java:160) at org.openstreetmap.josm.Main.<init>(Main.java:251) at org.openstreetmap.josm.gui.MainApplication.<init>(MainApplication.java:60) at org.openstreetmap.josm.gui.MainAppli
Attachments (2)
Change History (7)
by , 13 years ago
Attachment: | Josm build problem.png added |
---|
by , 13 years ago
Attachment: | Java Build Path.png added |
---|
Java Build path including javacc.jar from core/test
follow-up: 2 comment:1 by , 13 years ago
Either follow the instructions on http://josm.openstreetmap.de/wiki/InstallNotes or compile it one time with "ant" to generate the missing files.
follow-up: 4 comment:2 by , 13 years ago
Replying to bastiK:
Either follow the instructions on http://josm.openstreetmap.de/wiki/InstallNotes or compile it one time with "ant" to generate the missing files.
Dear bastiK,
thanks for this hint. I was not aware that the JOSM project uses the javaCC Compiler generator, and not familiar with the appropriate plugin needed. The instructions in the InstallNotes for Eclipse worked just fine. I had indeed to move the generated files into a newly created parsergen folder/package. Now JOSM compiles and runs perfectly.
comment:3 by , 13 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
follow-up: 5 comment:4 by , 13 years ago
I also had to move the generated java files to the subfolder parsergen manually. Should/can I add this step to the install notes on http://josm.openstreetmap.de/wiki/InstallNotes#Usingeclipse ?
comment:5 by , 13 years ago
Replying to Larifari77:
I also had to move the generated java files to the subfolder parsergen manually. Should/can I add this step to the install notes on http://josm.openstreetmap.de/wiki/InstallNotes#Usingeclipse ?
Sure, you are talking about a wiki. Help is always welcome !
Eclipse screenshot with compilation errors and crash dump