From: Peter <pe...@co...> - 2005-09-24 15:18:50
|
Hello, Lately i've been wanting to create a simple text editor applet in Java (because i dont like inserting [B], [I], ect into an html <textarea>), and rather than to learn Swing, i figured id'e stick to something im already used to, like wx. However, i cannot seem to get wx4j installed as ant seems to give me the following errors: [javac] /home/peter/software/wx4j-0.2.0/build/wx4j/java/org/wxwindows/wxAppNative.java:11: 'class' or 'interface' expected [javac] public abstract wxAppNative extends wxEvtHandler { [javac] ^ [javac] 2 errors So i tryed changing "abstract" to "abstract class" in the source code and got: # -------------------------------- [javac] /home/peter/software/wx4j-0.2.0/build/wx4j/java/org/wxwindows/Java2WxInputStreamAdapter.java:194: cannot resolve symbol [javac] symbol : variable wxFromStart [javac] location: class org.wxwindows.wx [javac] if (seekMode == wx.wxFromStart) [javac] ^ [javac] /home/peter/software/wx4j-0.2.0/build/wx4j/java/org/wxwindows/Java2WxInputStreamAdapter.java:202: cannot resolve symbol [javac] symbol : variable wxFromCurrent [javac] location: class org.wxwindows.wx [javac] else if (seekMode == wx.wxFromCurrent) [javac] ^ [javac] /home/peter/software/wx4j-0.2.0/build/wx4j/java/org/wxwindows/wxListCtrlAutoWidth.java:123: cannot resolve symbol [javac] symbol : variable wxSYS_VSCROLL_X [javac] location: class org.wxwindows.wxListCtrlAutoWidth [javac] int scrollWidth = wxSystemSettings.GetMetric(wxSYS_VSCROLL_X); [javac] ^ [javac] 3 errors # ----------------------------- I have also tryed using the --withjikes option, but got almost identical errors. Any help or insite on this will be greatly apreciated. Thanks, Peter Additional info: Debian version: sarge (3.1) Java version: java version "1.4.2-02" Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-02) Java HotSpot(TM) Client VM (build Blackdown-1.4.2-02, mixed mode) Jikes version: Jikes Compiler - Version 1.22 - 3 October 2004 Copyright (C) IBM Corporation 1997-2003, 2004. - Licensed Materials - Program Property of IBM - All Rights Reserved. Originally written by Philippe Charles and David Shields of IBM Research, Jikes is now maintained and refined by the Jikes Project at: <http://ibm.com/developerworks/opensource/jikes> Please consult this URL for more information and for reporting problems. Full error messages: #1 # ---------------------- Buildfile: build.xml prepare: build-swig: [exec] make: Nothing to be done for `swig'. build-tools: build-wx4j: [javac] Compiling 8 source files to /home/peter/software/wx4j-0.2.0/build/wx4j/classes [javac] /home/peter/software/wx4j-0.2.0/build/wx4j/java/org/wxwindows/wxApp.java:11: 'class' or 'interface' expected [javac] public abstract wxApp extends wxAppNative { [javac] ^ [javac] /home/peter/software/wx4j-0.2.0/build/wx4j/java/org/wxwindows/wxAppNative.java:11: 'class' or 'interface' expected [javac] public abstract wxAppNative extends wxEvtHandler { [javac] ^ [javac] 2 errors BUILD FAILED /home/peter/software/wx4j-0.2.0/build.xml:139: Compile failed; see the compiler error output for details. Total time: 4 seconds # ---------------------------- #2 # ------------------------ Buildfile: build.xml prepare: build-swig: [exec] make: Nothing to be done for `swig'. build-tools: build-wx4j: [javac] Compiling 8 source files to /home/peter/software/wx4j-0.2.0/build/wx4j/classes [javac] /home/peter/software/wx4j-0.2.0/build/wx4j/java/org/wxwindows/Java2WxInputStreamAdapter.java:194: cannot resolve symbol [javac] symbol : variable wxFromStart [javac] location: class org.wxwindows.wx [javac] if (seekMode == wx.wxFromStart) [javac] ^ [javac] /home/peter/software/wx4j-0.2.0/build/wx4j/java/org/wxwindows/Java2WxInputStreamAdapter.java:202: cannot resolve symbol [javac] symbol : variable wxFromCurrent [javac] location: class org.wxwindows.wx [javac] else if (seekMode == wx.wxFromCurrent) [javac] ^ [javac] /home/peter/software/wx4j-0.2.0/build/wx4j/java/org/wxwindows/wxListCtrlAutoWidth.java:123: cannot resolve symbol [javac] symbol : variable wxSYS_VSCROLL_X [javac] location: class org.wxwindows.wxListCtrlAutoWidth [javac] int scrollWidth = wxSystemSettings.GetMetric(wxSYS_VSCROLL_X); [javac] ^ [javac] 3 errors BUILD FAILED /home/peter/software/wx4j-0.2.0/build.xml:139: Compile failed; see the compiler error output for details. Total time: 5 seconds # --------------- |