[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipse-dev] Compiling first program
|
Please post this question to the Eclipse newsgroup. This mailing list is for
discussion about the implementation of Eclipse.
Thanks,
- Jared
On Wednesday 03 July 2002 11:06 am, you wrote:
> Hello All,
>
> I am reading the "java development user guide" of eclipse. However, I am
> not able to run my program from inside this new ide.
>
> My program works from textpad+console way but when I run thru eclipse it
> throws an error
>
> java.lang.Error: Unresolved compilation problem:
> Non-externalized string literal; it should be followed by //$NON-NLS-<n>$
>
> at java.lang.reflect.Constructor.newInstance(Native Method)
> at PrintDOM.main(PrintDOM.java:10)
> Exception in thread "main"
>
> the program is
> -----------------------
> public class BuildDOM
> {
> public static void main(String[] args) throws Exception
> {
> DocumentBuilderFactory dbFac = DocumentBuilderFactory.newInstance();
> DocumentBuilder db = dbFac.newDocumentBuilder();
> Document d = db.parse("book.xml");
> if (d != null) System.out.println("dom tree built successfully");
> }
> }
> -----------------------
> What is a non externalized string?? this does not look like a javac or java
> error as my program compile/works perfectly from console.
>
> Another question, I can find a run icon in the tool bar which executes the
> program .... but how to only compile? when I right click on the package
> explorer (Java perspective) then I do not see menu options like "compile"
> or "compile all" ?
>
> regards,
> Abhishek.
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
> _______________________________________________
> eclipse-dev mailing list
> eclipse-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/eclipse-dev