Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Libra » by using eclipse wtp3.3 create WAR product configuration,export war file,one error occurs
by using eclipse wtp3.3 create WAR product configuration,export war file,one error occurs [message #758469] Wed, 23 November 2011 11:50
terry  is currently offline terry Friend
Messages: 6
Registered: November 2011
Junior Member
By using eclipse wtp3.3 create WAR product configuration,Export the file(XXX.WAR) and one error come out
this is the @dit.log

# 11-11-23 18:09:30
# Eclipse Compiler for Java(TM) 0.B76_R37x, 3.7.1, Copyright IBM Corp 2000, 2011. All rights reserved.
----------
1. ERROR in D:\work\eoffice\src\com\yidatec\eoffice\startup\Application.java (at line 22)
}
^
Syntax error on token "}", { expected after this token
----------
2. ERROR in D:\work\eoffice\src\com\yidatec\eoffice\startup\Application.java (at line 24)
return PlatformUI.createAndRunWorkbench(display,
new ApplicationWorkbenchAdvisor());
}

public void stop() {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error on token(s), misplaced construct(s)
----------
3. ERROR in D:\work\eoffice\src\com\yidatec\eoffice\startup\Application.java (at line 26)
}
^
Syntax error on token "}", delete this token
----------
4. ERROR in D:\work\eoffice\src\com\yidatec\eoffice\startup\Application.java (at line 28)
public void stop() {
^^^^
Syntax error on token "void", @ expected
here is the application class:
package com.yidatec.eoffice.startup;

import org.eclipse.equinox.app.IApplication;
import org.eclipse.equinox.app.IApplicationContext;
import org.eclipse.jface.window.Window;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.PlatformUI;

public class Application implements IApplication {

public Object start(IApplicationContext context) throws Exception
{
Display display = PlatformUI.createDisplay();

if (authenticate(display) != Window.OK) {
return IApplication.EXIT_OK;
}
// WorkbenchAdvisor advisor = new ApplicationWorkbenchAdvisor();
return PlatformUI.createAndRunWorkbench(display,
new ApplicationWorkbenchAdvisor());
}

public void stop() {
// Do nothing
}

private int authenticate(Display display) {
LoginDialog loginDialog = new LoginDialog(display.getActiveShell());
return loginDialog.open();
}

}

[Updated on: Wed, 23 November 2011 11:56]

Report message to a moderator

Previous Topic:"OSGI Bundle" facet should requires "Java" facet
Next Topic:By using warproduct, Compilation errors occurred during the operation
Goto Forum:
  


Current Time: Fri Apr 26 18:05:52 GMT 2024

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

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

Back to the top