Modify

Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#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?

  1. Downloaded (updated) newest stat of JOSM core from repository
  2. Completely build it
  3. Start JOSM from class org.openstreetmap.josm.gui.MainApplication

What is the expected result? Errorless build of Josm, Josm should run.

What happens instead?

  1. Errors in compilation in file org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource
  2. 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)

Josm build problem.png (161.5 KB ) - added by gpermant 13 years ago.
Eclipse screenshot with compilation errors and crash dump
Java Build Path.png (107.9 KB ) - added by gpermant 13 years ago.
Java Build path including javacc.jar from core/test

Download all attachments as: .zip

Change History (7)

by gpermant, 13 years ago

Attachment: Josm build problem.png added

Eclipse screenshot with compilation errors and crash dump

by gpermant, 13 years ago

Attachment: Java Build Path.png added

Java Build path including javacc.jar from core/test

comment:1 by bastiK, 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.

in reply to:  1 ; comment:2 by gpermant, 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 Don-vip, 13 years ago

Resolution: invalid
Status: newclosed

in reply to:  2 ; comment:4 by Larifari77, 12 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 ?

in reply to:  4 comment:5 by skyper, 12 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 !

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.