Skip to main content

shortcut does not launch cvm

59 replies [Last post]
wrappingduke
Offline
Joined: 2008-01-23
Points: 0

attempting to test jre in device emulator per http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedGSGWinMobile

Unfortunately, it appears that the .lnk file is not launching cvm.exe. As instructed on this page, I have created the Storage Card folder to place bin, lib, testclasses.zip and .jar file. The args.txt and .lnk files are located in a directory above the Storage Card directory. When the .lnk is double-clicked, nothing happens.

Here's a sample of what has been done in the .lnk and args files

01#"\Storage Card\bin\cvm.exe" -f "\Storage Card\args.txt"

-Xmx2m -Djava.class.path="\Storage Card\testclasses.zip" MyApp

any help is appreciated.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi wrappingduke,
> ...
> Also, if you see an error that says missing "windows.h" (what Chris saw), make sure to install the Microsoft Pocket PC 2002 SDK (See: http://www.microsoft.com/downloads/details.aspx?FamilyID=2DBEE84A-BD94-4... )
>

Sorry, for this part if you see an error that says missing "windows.h",
you actually need the Microsoft Pocket PC 2003 SDK for the
win32-arm-ppc03 build, so you would get that from here:

http://www.microsoft.com/downloads/details.aspx?FamilyId=9996B314-0364-4...

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Hello Hinkmond,

I was wondering if there was any new info on this issue? I didn't include the results from tool dir in the last post but the result was the same as cdc dir. That is, no arrow preceding the file path indicating symlinks:

$ ls -ld /home/ohi/tools
drwxr-xr-x+ 9 OHI None 0 Mar 4 13:06 /home/ohi/tools

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hello Hinkmond,
>
> I was wondering if there was any new info on this issue? I didn't include the results from tool dir in the last post but the result was the same as cdc dir. That is, no arrow preceding the file path indicating symlinks:
>
> $ ls -ld /home/ohi/tools
> drwxr-xr-x+ 9 OHI None 0 Mar 4 13:06 /home/ohi/tools
>
>

Hi wrappingduke,

That was all the info I have on this issue from my end. I saw the same
error you did because I had a symlink in my path to my working copy and
after I fixed it, my build completed fine. I do not see the same error
you are seeing any more.

Is there anything else you can tell me about your "/home" directory that
could be strange? Do you have it network mounted (mapped) on your
Windows/x86 PC?

How did you create "/home/ohi"? Was it there when you installed cygwin?

If "/home/ohi" was already there when you started, try these instructions:

Create and mount the C:/home directory to /home (within the Cygwin Bash
Shell)

* mkdir c:/home
* mkdir -p /home
* mount c:/home /home
* mkdir /home/ohi

Then "cd /home/ohi" and do svn checkouts of the cdc, tools, and any
other required components again. Then try building again.

Let me know if that helps.

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Hello Hinkmonk,

Thanks for the reply. Actually, the /home/ohi directory is created when the cygwin shell is started.

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Thanks for the reply. Actually, the /home/ohi directory is created when the cygwin shell is started.

That's what I was guessing is the problem. To solve the build problem
you are seeing which is probably caused by that /home/ohi directory that
was created when the cygwin shell was installed on your system by
default, try the following steps:

Create and mount a new C:/home directory to /home (within the Cygwin Bash
Shell)

* mkdir c:/home
* mkdir -p /home
* mount c:/home /home
* mkdir /home/ohi

This will create a new (empty) /home/ohi for you with the proper
mounting to build our phoneME software. After performing the above
steps, do a "cd /home/ohi" command to the new empty /home/ohi directory
and then do svn checkouts of the cdc, tools, and any other required
components again. Then try building again (same way as before).

Let me know if that helps.

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Hi Hinkmond,

thx for the response. i'm sorry to ask but how do i export javac w/ the mounting of c:, e.g. export PATH=/cygdrive/c/Java/j2sdk1.4.2_16/bin/:$PATH.

javac can't be found.

your help is appreciated.

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi Hinkmond,
>
> thx for the response. i'm sorry to ask but how do i export javac w/ the mounting of c:, e.g. export PATH=/cygdrive/c/Java/j2sdk1.4.2_16/bin/:$PATH.
>
> javac can't be found.
>

Hi wrappingduke,

When you mount, make sure you only mount C:/home to /home and no other
directories.

Ex.
* mkdir c:/home
* mkdir -p /home
* mount c:/home /home
^^^^^^^^^^^^^^^^^^^
* mkdir /home/ohi

If you make sure you are only mounting C:/home to /home and are not
mounting over any other C: directories, then you only are affect "/home"
(Ex. mount c:/home /home). You should not be affecting C: or
/cygdrive/c/... or your $PATH in any way.

When you type mount by itself on a command line in a cygwin shell, what
is the result (please copy and paste it and send it back).

It should look like this:

$ mount
C:\cygwin\bin on /usr/bin type system (binmode)
C:\cygwin\lib on /usr/lib type system (binmode)
C:\cygwin on / type system (binmode)
C:\home on /home type system (binmode)
c: on /cygdrive/c type system (binmode,noumount)

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Hi Hinkmond,

thx for the response. it's greatly appreciated. the jsr169 jar has been built. i have included in my classpath and when i ran the lnk file, the following error was given:

CertVerify: \Storage Card\bin\cvm.exe trust = 2
CertVerify: \Storage Card\bin\cvmi.dll trust = 2
CertVerify: \Storage Card\bin\pocketpcawt.dll trust = 2
CertVerify: wcecompat.dll trust = 2
Exception occurred during event dispatching:
java.lang.SecurityException: Prohibited package name: java.sql
at sun.misc.Launcher$AppClassLoader.handlePackage(Unknown Source)
at sun.misc.Launcher$AppClassLoader.defineClassPrivate(Unknown Source)
at sun.misc.Launcher$AppClassLoader.access$500(Unknown Source)
at sun.misc.Launcher$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Unknown Source)
at java.security.AccessController.doPrivileged(Unknown Source)
at sun.misc.Launcher$AppClassLoader.doClassFind(Unknown Source)
at sun.misc.Launcher$AppClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at legitigant_ppc.Main.initComponents(Unknown Source)
at legitigant_ppc.Main.(Unknown Source)
at legitigant_ppc.Main$2.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventQueueProxy.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
at java.lang.Thread.startup(Unknown Source)

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi Hinkmond,
>
> thx for the response. it's greatly appreciated. the jsr169 jar has been built. i have included in my classpath and when i ran the lnk file, the following error was given:
>
> CertVerify: \Storage Card\bin\cvm.exe trust = 2
> CertVerify: \Storage Card\bin\cvmi.dll trust = 2
> CertVerify: \Storage Card\bin\pocketpcawt.dll trust = 2
> CertVerify: wcecompat.dll trust = 2
> Exception occurred during event dispatching:
> java.lang.SecurityException: Prohibited package name: java.sql
> at sun.misc.Launcher$AppClassLoader.handlePackage(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.defineClassPrivate(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.access$500(Unknown Source)
> at sun.misc.Launcher$4.run(Unknown Source)
>

Hi wrappingduke,

Great to hear you now have a built JSR 169 JAR file! :-)

I think the problem you are seeing is caused by using -classpath instead
of -Xbootclasspath/a.

So, instead of using classpath to add jsr169.jar, try doing this instead:

cvm -Xbootclasspath/a:jsr169.jar -classpath

Ex.
cvm -Xbootclasspath/a:jsr169.jar -classpath . AppMain

***Please note that JSR 169 is just a set of empty interfaces, so you will need to have a real port of JSR 169 to some real database (such as Apache Derby) for any app you are running to work.

For more info, see:

http://wiki.apache.org/db-derby/JavaMESupport

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Hi Hinkmond,

That did it! I want to thank you for both your patience and help. I earnestly thank all for their help.

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi Hinkmond,
>
> That did it! I want to thank you for both your patience and help. I earnestly thank all for their help.

Hi wrappingduke,

My pleasure. :-) I'm glad it worked! Please let us all know how your
project works out using pMEA and JSR 169 (JDBC on Java ME), and if you
have further questions about phoneME Advanced. Good luck!

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

bill pittore

THis is all vaguely familiar. If you use USE_VERBOSE_MAKE=true, check
the various paths that javac or java sees. If any of them are
/cygdrive/c/XXX OR they are relative to the cygdrive directory (like
../../../../c/XXX) then java will give an error.

bill

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

Hinkmond Wong

bill pittore wrote:
> THis is all vaguely familiar. If you use USE_VERBOSE_MAKE=true, check
> the various paths that javac or java sees. If any of them are
> /cygdrive/c/XXX OR they are relative to the cygdrive directory (like
> ../../../../c/XXX) then java will give an error.

Thanks, Bill. I have verbose on now but I'm not seeing any clues why my
build is failing still like the way wrappingduke is also seeing. I
tried setting JAVA_HOME to /cygdrive/c/j2sdk1.4.2_16 and the DOS
equivalent, but that did not make a difference. I also tried changing
TOOLS_DIR to both POSIX and DOS style without a difference.

Chris, are there any environment variables that you export to get your
build to work on levi? What is your make command line?

Also, did you build from a working copy in the /home or C:/home toplevel
directory?

Thanks,

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

hinkmond
Offline
Joined: 2003-12-01
Points: 0

Hi wrappingduke,

Bill just figured out what the problem was for the error both you and I were seeing. (Thanks Bill! :-) ) It was because I had a symbolic link in my path to my files.

So, it is probably the same for you.

Please make sure you do not use any symlinks in any part of your path where you are building.

For example, make sure none of these are symbolic links:

ls -l /home/ohi/cdc/build/win32-arm-ppc03
ls -l /home/ohi/cdc/build
ls -l /home/ohi/cdc
ls -l /home/ohi
ls -l /home

Also, make sure your tools dir is not a symbolic link either:

ls -l /home/ohi/tools

If any of the above subdirs are symlinks, make sure to remove that symlink and physically copy the entire tree of files (cp -r) from the original subdir location to the destination symlink location you want.

Then, try building again. It works fine for me now that I removed my symlinks and have physical copies of the subdir tree instead.

Also, if you see an error that says missing "windows.h" (what Chris saw), make sure to install the Microsoft Pocket PC 2002 SDK (See: http://www.microsoft.com/downloads/details.aspx?FamilyID=2DBEE84A-BD94-4... )

Hinkmond

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Hello Hinkmond,

It appears that there are no symbolic links. I ended up w/ the same result when attempting to build.

Here are the results from ls cmd:

ls -l /home/ohi/cdc/build/win32-arm-ppc03
total 8
-rw-r--r-- 1 OHI None 1807 Feb 27 11:15 GNUmakefile
drwxr-xr-x+ 2 OHI None 0 Feb 27 11:48 bin
drwxr-xr-x+ 2 OHI None 0 Feb 27 11:48 btclasses
drwxr-xr-x+ 2 OHI None 0 Feb 27 11:48 classes.jcc
drwxr-xr-x+ 2 OHI None 0 Feb 27 11:48 classes.tools
-rw-r--r-- 1 OHI None 1078 Feb 27 11:15 defs.mk
drwxr-xr-x+ 2 OHI None 0 Feb 27 11:48 democlasses
drwxr-xr-x+ 2 OHI None 0 Feb 27 11:48 foundation_classes
drwxr-xr-x+ 8 OHI None 0 Feb 27 11:48 generated
drwxr-xr-x+ 2 OHI None 0 Feb 27 11:48 jcs
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:48 lib
drwxr-xr-x+ 2 OHI None 0 Feb 27 11:48 obj
drwxr-xr-x+ 2 OHI None 0 Feb 27 11:48 testclasses

ls -l /home/ohi/cdc/build
total 0
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 arm
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 darwin
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 darwin-powerpc
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 darwin-powerpc-mac
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-arm
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-arm-bulverde
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-arm-bulverdemv
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-arm-familiar
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-arm-generic
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-arm-monahans
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-arm-netwinder
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-arm-strongarm
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-arm-thumb
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-arm-zaurus
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-mips
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-mips-cobalt
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-mips-sgi
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-powerpc
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-powerpc-softfp
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-powerpc-yellowdog
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-sparc
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-sparc-sun
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-x86
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-x86-generic
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 linux-x86-suse
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 mips
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 portlibs
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 powerpc
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 share
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 solaris
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 solaris-sparc
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 solaris-sparc-sun
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 solaris-x86
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 solaris-x86-sun
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 sparc
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 symbian
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 symbian-arm
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 symbian-arm-epoc
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 symbian-x86
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 symbian-x86-winsim
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 vxworks
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 vxworks-sparc
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 vxworks-sparc-SIMSPARCSOLARIS
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 vxworks-sparc-SPARC
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 vxworks-x86
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 vxworks-x86-PENTIUM
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 win32
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 win32-arm
drwxr-xr-x+ 4 OHI None 0 Feb 27 11:29 win32-arm-pocketpc
drwxr-xr-x+ 14 OHI None 0 Feb 27 11:48 win32-arm-ppc03
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 win32-arm-wm5
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 win32-mips
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 win32-mips-wince42
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 win32-x86
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 win32-x86-pocketpc
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 win32-x86-ppc03
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 win32-x86-vc6
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 win32-x86-vc7
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 win32-x86-vc8
drwxr-xr-x+ 3 OHI None 0 Feb 27 11:15 x86

Message was edited by: wrappingduke

Message was edited by: wrappingduke

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hello Hinkmond,
>
> It appears that the directorities are not ophaned. Here are the results:

How about your upper directories? What is the result of:

ls -ld /home/ohi/cdc

ls -ld /home/ohi/tools

ls -ld /home/ohi

ls -ld /home

Thanks,
Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hello Hinkmond,
>
> I got the following error message from the make cmd:
>
> /home/ohi/cdc/build/share/defs.mk:107: *** TOOLS_DIR must point to the shared tools directory: /home/ohi/tools. Stop.
>
> I also tried typing the entire path for the JDBC_DIR but I ended up w/ the same result.

Hi wrappingduke,

Sorry, I forgot a part in step #1 (to tell you to checkout the tools
component):

-----
1. First, in a working directory you must check out the cdc *and tools*
components from the phoneme repository:

cdc:
svn checkout
https://phoneme.dev.java.net/svn/phoneme/components/cdc/trunk cdc

tools:
svn checkout
https://phoneme.dev.java.net/svn/phoneme/components/tools/trunk tools
-----

Please try checking out the tools component by following the above svn
checkout command for tools: in your /home/ohi directory and then try
your commands to cd to the cdc/build/win32-arm-wm5 subdir and same make
command again.

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Ok fellas,

here are the results of the suggested changes. It should be noted that I had to re-install all the tools needed, such as Embedded VC++ & Pocket PC SDK, since I removed them prematurely. This maybe the reason for the following error:

$ make J2ME_CLASSLIB=foundation USE_JDBC=true JDBC_DIR=../../../jdbc
touch /home/ohi/cdc/build/win32-arm-ppc03/./generated/empty.mk
MAKEFLAGS = USE_JDBC=true J2ME_CLASSLIB=foundation
CVM_HOST = i686-cygwin-win32
CVM_TARGET = win32-arm-ppc03
SHELL = bash -e
HOST_CC = /usr/bin/cc
HOST_CCC = /usr/bin/g++
ZIP = /usr/bin/zip
FLEX = /usr/bin/flex
BISON = /usr/bin/bison
CVM_JAVA = /cygdrive/c/WINDOWS/system32/java
CVM_JAVAC = which: no javac in (/cygdrive/c/Program Files/Microsoft eMbedded C+
+ 4.0/EVC/wce420/bin:/cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Common
/EVC/Bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system3
2:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem)
CVM_JAVAH = which: no javah in (/cygdrive/c/Program Files/Microsoft eMbedded C+
+ 4.0/EVC/wce420/bin:/cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Common
/EVC/Bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system3
2:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem)
CVM_JAR = which: no jar in (/cygdrive/c/Program Files/Microsoft eMbedded C++
4.0/EVC/wce420/bin:/cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Common/E
VC/Bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:
/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem)
TARGET_CC = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/CLARM.EXE
TARGET_CCC = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/CLARM.EXE
TARGET_AS = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/ARMASM.EXE
TARGET_LD = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/LINK.EXE
TARGET_AR = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/LINK.EXE
TARGET_RANLIB = /usr/bin/ranlib
LINKFLAGS = /incremental:no /nologo /map /subsystem:windowsce,3.00 /MACHINE:AR
M
LINKLIBS = -lpthread -ldl
ASM_FLAGS = -CPU StrongARM1 -32 -NOTerse -WIdth 132 -list .lst .i
CCCFLAGS =
CCFLAGS_SPEED = /nologo /c /W2 /MC -D__STDC__ /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_SPACE = /nologo /c /W2 /MC -D__STDC__ /O1 /Ob1 -DNDEBUG
CCFLAGS_LOOP = /nologo /c /W2 /MC -D__STDC__ /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_FDLIB = /nologo /c /W2 /MC -D__STDC__ -DNDEBUG /Od
JAVAC_OPTIONS = -g:none -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -t
arget 1.4
CVM_DEFINES = -DCVM_OPTIMIZED -DCVM_DEBUG_STACKTRACES -DNDEBUG -DCVM_CLASSLOA
DING -DCVM_SERIALIZATION -DCVM_REFLECT -DCVM_DYNAMIC_LINKING -DCVM_JIT -DCVM_JIT
_REGISTER_LOCALS -DCVM_TIMESTAMPING -DJ2ME_CLASSLIB=foundation -DTARGET_CPU_FAMI
LY=arm -DCVM_JIT_COPY_CCMCODE_TO_CODECACHE -DCVM_DLL -DHAVE_64_BIT_IO -DNDEBUG -
DARM -D_ARM -D__RVCT__ -DWINCE -DWIN32_LEAN_AND_MEAN -DWIN32_PLATFORM_PSPC -DUNI
CODE -D_UNICODE -DUNDER_CE=300 -D_WIN32_WCE=300 -DPOCKETPC
host uname = CYGWIN_NT-5.1 OHBC1-CYBER04 1.5.25(0.156/4/2) 2007-12-14 19:
21 i686 Cygwin
TARGET_CC version = Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 f
or ARM
HOST_CC version = 3.4.4 i686-pc-cygwin
CVM_JAVA version = java version 1.6.0_01
TOOLS_DIR = /home/ohi/tools
SDK_DIR = C:/Program Files/Windows CE Tools
VC_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0
PLATFORM_SDK_DIR = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003
PLATFORM_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/w
ce420/bin
COMMON_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Commo
n/EVC/Bin
INCLUDE = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/In
clude/Armv4;C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Mfc/include;
C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Atl/include
LIB = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Li
b/Armv4;C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Mfc/lib/armv4;C:
/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Atl/lib/armv4
updating /home/ohi/cdc/build/win32-arm-ppc03/./generated/build_defs.mk ...
Checking for build-time classes to compile ...
... building CodeTransformer
bash: javac: command not found
make: *** [/home/ohi/tools/output/Configurator.jar] Error 127

OHI@OHBC1-CYBER04 /home/ohi/cdc/build/win32-arm-ppc03
$ make J2ME_CLASSLIB=foundation USE_JDBC=true CVM_COMPILER_IMCOMPATIBLE=false
MAKEFLAGS = CVM_COMPILER_IMCOMPATIBLE=false USE_JDBC=true J2ME_CLASSLIB=foundat
ion
CVM_HOST = i686-cygwin-win32
CVM_TARGET = win32-arm-ppc03
SHELL = bash -e
HOST_CC = /usr/bin/cc
HOST_CCC = /usr/bin/g++
ZIP = /usr/bin/zip
FLEX = /usr/bin/flex
BISON = /usr/bin/bison
CVM_JAVA = /cygdrive/c/WINDOWS/system32/java
CVM_JAVAC = which: no javac in (/cygdrive/c/Program Files/Microsoft eMbedded C+
+ 4.0/EVC/wce420/bin:/cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Common
/EVC/Bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system3
2:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem)
CVM_JAVAH = which: no javah in (/cygdrive/c/Program Files/Microsoft eMbedded C+
+ 4.0/EVC/wce420/bin:/cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Common
/EVC/Bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system3
2:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem)
CVM_JAR = which: no jar in (/cygdrive/c/Program Files/Microsoft eMbedded C++
4.0/EVC/wce420/bin:/cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Common/E
VC/Bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:
/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem)
TARGET_CC = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/CLARM.EXE
TARGET_CCC = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/CLARM.EXE
TARGET_AS = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/ARMASM.EXE
TARGET_LD = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/LINK.EXE
TARGET_AR = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/LINK.EXE
TARGET_RANLIB = /usr/bin/ranlib
LINKFLAGS = /incremental:no /nologo /map /subsystem:windowsce,3.00 /MACHINE:AR
M
LINKLIBS = -lpthread -ldl
ASM_FLAGS = -CPU StrongARM1 -32 -NOTerse -WIdth 132 -list .lst .i
CCCFLAGS =
CCFLAGS_SPEED = /nologo /c /W2 /MC -D__STDC__ /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_SPACE = /nologo /c /W2 /MC -D__STDC__ /O1 /Ob1 -DNDEBUG
CCFLAGS_LOOP = /nologo /c /W2 /MC -D__STDC__ /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_FDLIB = /nologo /c /W2 /MC -D__STDC__ -DNDEBUG /Od
JAVAC_OPTIONS = -g:none -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -t
arget 1.4
CVM_DEFINES = -DCVM_OPTIMIZED -DCVM_DEBUG_STACKTRACES -DNDEBUG -DCVM_CLASSLOA
DING -DCVM_SERIALIZATION -DCVM_REFLECT -DCVM_DYNAMIC_LINKING -DCVM_JIT -DCVM_JIT
_REGISTER_LOCALS -DCVM_TIMESTAMPING -DJ2ME_CLASSLIB=foundation -DTARGET_CPU_FAMI
LY=arm -DCVM_JIT_COPY_CCMCODE_TO_CODECACHE -DCVM_DLL -DHAVE_64_BIT_IO -DNDEBUG -
DARM -D_ARM -D__RVCT__ -DWINCE -DWIN32_LEAN_AND_MEAN -DWIN32_PLATFORM_PSPC -DUNI
CODE -D_UNICODE -DUNDER_CE=300 -D_WIN32_WCE=300 -DPOCKETPC
host uname = CYGWIN_NT-5.1 OHBC1-CYBER04 1.5.25(0.156/4/2) 2007-12-14 19:
21 i686 Cygwin
TARGET_CC version = Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 f
or ARM
HOST_CC version = 3.4.4 i686-pc-cygwin
CVM_JAVA version = java version 1.6.0_01
TOOLS_DIR = /home/ohi/tools
SDK_DIR = C:/Program Files/Windows CE Tools
VC_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0
PLATFORM_SDK_DIR = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003
PLATFORM_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/w
ce420/bin
COMMON_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Commo
n/EVC/Bin
INCLUDE = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/In
clude/Armv4;C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Mfc/include;
C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Atl/include
LIB = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Li
b/Armv4;C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Mfc/lib/armv4;C:
/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Atl/lib/armv4
updating /home/ohi/cdc/build/win32-arm-ppc03/./generated/build_defs.mk ...
Checking for build-time classes to compile ...
... building CodeTransformer
bash: javac: command not found
make: *** [/home/ohi/tools/output/Configurator.jar] Error 127

If you could be so kind, maybe you can send me a copy of the build.

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Ok fellas,
>
> here are the results of the suggested changes. It should be noted
> that I had to re-install all the tools needed, such as Embedded VC++ & Pocket
> PC SDK, since I removed them prematurely. This maybe the reason for the
> following error:

> OHI@OHBC1-CYBER04 /home/ohi/cdc/build/win32-arm-ppc03
> $ make J2ME_CLASSLIB=foundation USE_JDBC=true CVM_COMPILER_IMCOMPATIBLE=false
> MAKEFLAGS = CVM_COMPILER_IMCOMPATIBLE=false USE_JDBC=true J2ME_CLASSLIB=foundat
> ion
> CVM_HOST = i686-cygwin-win32
> CVM_TARGET = win32-arm-ppc03
> SHELL = bash -e
> HOST_CC = /usr/bin/cc
> HOST_CCC = /usr/bin/g++
> ZIP = /usr/bin/zip
> FLEX = /usr/bin/flex
> BISON = /usr/bin/bison
> CVM_JAVA = /cygdrive/c/WINDOWS/system32/java
> CVM_JAVAC = which: no javac in (/cygdrive/c/Program Files/Microsoft eMbedded C+
> + 4.0/EVC/wce420/bin:/cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Common
> /EVC/Bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system3
> 2:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem)
> CVM_JAVAH = which: no javah in (/cygdrive/c/Program Files/Microsoft eMbedded C+
...
> ... building CodeTransformer
> bash: javac: command not found
> make: *** [/home/ohi/tools/output/Configurator.jar] Error 127

Yes, you probably also removed the J2SE SDK. Make sure to re-install
the J2SE SDK 1.4.2 and have it on your $PATH correctly.

Download the "J2SE SDK 1.4.2" and install from here:

http://java.sun.com/j2se/1.4.2/download.html
(NOTE: Choose "Download J2SE SDK")

In the cygwin shell, you should see this command pick up the correct javac:

which javac

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Hello Hinkmond,

I downloaded, installed J2SE SDK and re-ran the make command for the JDBC. I rec'vd the following error message:

$ make J2ME_CLASSLIB=foundation USE_JDBC=true JDBC_DIR=../../../jdbc
touch /home/OHI/cdc/build/win32-arm-ppc03/./generated/empty.mk
MAKEFLAGS = JDBC_DIR=../../../jdbc USE_JDBC=true J2ME_CLASSLIB=foundation
CVM_HOST = i686-cygwin-win32
CVM_TARGET = win32-arm-ppc03
SHELL = bash -e
HOST_CC = /usr/bin/cc
HOST_CCC = /usr/bin/g++
ZIP = /usr/bin/zip
FLEX = /usr/bin/flex
BISON = /usr/bin/bison
CVM_JAVA = /cygdrive/c/WINDOWS/system32/java
CVM_JAVAC = which: no javac in (/cygdrive/c/Program Files/Microsoft eMbedded C+
+ 4.0/EVC/wce420/bin:/cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Common
/EVC/Bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system3
2:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem)
CVM_JAVAH = which: no javah in (/cygdrive/c/Program Files/Microsoft eMbedded C+
+ 4.0/EVC/wce420/bin:/cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Common
/EVC/Bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system3
2:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem)
CVM_JAR = which: no jar in (/cygdrive/c/Program Files/Microsoft eMbedded C++
4.0/EVC/wce420/bin:/cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Common/E
VC/Bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:
/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem)
TARGET_CC = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/CLARM.EXE
TARGET_CCC = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/CLARM.EXE
TARGET_AS = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/ARMASM.EXE
TARGET_LD = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/LINK.EXE
TARGET_AR = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/LINK.EXE
TARGET_RANLIB = /usr/bin/ranlib
LINKFLAGS = /incremental:no /nologo /map /subsystem:windowsce,3.00 /MACHINE:AR
M
LINKLIBS = -lpthread -ldl
ASM_FLAGS = -CPU StrongARM1 -32 -NOTerse -WIdth 132 -list .lst .i
CCCFLAGS =
CCFLAGS_SPEED = /nologo /c /W2 /MC -D__STDC__ /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_SPACE = /nologo /c /W2 /MC -D__STDC__ /O1 /Ob1 -DNDEBUG
CCFLAGS_LOOP = /nologo /c /W2 /MC -D__STDC__ /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_FDLIB = /nologo /c /W2 /MC -D__STDC__ -DNDEBUG /Od
JAVAC_OPTIONS = -g:none -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -t
arget 1.4
CVM_DEFINES = -DCVM_OPTIMIZED -DCVM_DEBUG_STACKTRACES -DNDEBUG -DCVM_CLASSLOA
DING -DCVM_SERIALIZATION -DCVM_REFLECT -DCVM_DYNAMIC_LINKING -DCVM_JIT -DCVM_JIT
_REGISTER_LOCALS -DCVM_TIMESTAMPING -DJ2ME_CLASSLIB=foundation -DTARGET_CPU_FAMI
LY=arm -DCVM_JIT_COPY_CCMCODE_TO_CODECACHE -DCVM_DLL -DHAVE_64_BIT_IO -DNDEBUG -
DARM -D_ARM -D__RVCT__ -DWINCE -DWIN32_LEAN_AND_MEAN -DWIN32_PLATFORM_PSPC -DUNI
CODE -D_UNICODE -DUNDER_CE=300 -D_WIN32_WCE=300 -DPOCKETPC
host uname = CYGWIN_NT-5.1 DGVFHSC1 1.5.25(0.156/4/2) 2007-12-14 19:21 i6
86 Cygwin
TARGET_CC version = Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 f
or ARM
HOST_CC version = 3.4.4 i686-pc-cygwin
CVM_JAVA version = java version 1.6.0_01
TOOLS_DIR = /home/OHI/tools
SDK_DIR = C:/Program Files/Windows CE Tools
VC_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0
PLATFORM_SDK_DIR = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003
PLATFORM_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/w
ce420/bin
COMMON_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Commo
n/EVC/Bin
INCLUDE = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/In
clude/Armv4;C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Mfc/include;
C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Atl/include
LIB = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Li
b/Armv4;C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Mfc/lib/armv4;C:
/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Atl/lib/armv4
updating /home/OHI/cdc/build/win32-arm-ppc03/./generated/build_defs.mk ...
Checking for build-time classes to compile ...
... generating PackageManager.java
java.io.FileNotFoundException: C:\home\OHI\cdc\src\share\tools\xml\empty.xml (Th
e system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(Unknown Source)
at java.io.FileInputStream.(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown So
urce)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent
Entity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineD
ocVersion(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk
nown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at com.sun.xml.transform.CodeTransformerImpl.transform(Unknown Source)
at com.sun.xml.transform.CodeTransformer.main(Unknown Source)
make: *** [/home/OHI/cdc/build/win32-arm-ppc03/./generated/classes/com/sun/cdc/c
onfig/PackageManager.java] Error 1

As a test, I tried rebuilding the the jvm and got the same message above.

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hello Hinkmond,
>
> I downloaded, installed J2SE SDK and re-ran the make command for the JDBC. I rec'vd the following error message:

It looks like you have two problems (see below).

> $ make J2ME_CLASSLIB=foundation USE_JDBC=true JDBC_DIR=../../../jdbc
> touch /home/OHI/cdc/build/win32-arm-ppc03/./generated/empty.mk
> MAKEFLAGS = JDBC_DIR=../../../jdbc USE_JDBC=true J2ME_CLASSLIB=foundation
> CVM_HOST = i686-cygwin-win32
> CVM_TARGET = win32-arm-ppc03
> SHELL = bash -e
> HOST_CC = /usr/bin/cc
> HOST_CCC = /usr/bin/g++
> ZIP = /usr/bin/zip
> FLEX = /usr/bin/flex
> BISON = /usr/bin/bison
> CVM_JAVA = /cygdrive/c/WINDOWS/system32/java
> CVM_JAVAC = which: no javac in (/cygdrive/c/Program Files/Microsoft eMbedded C+
^^^^^^^^^^^^^^^^^^
> + 4.0/EVC/wce420/bin:/cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Common
> /EVC/Bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system3
> 2:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem)
> CVM_JAVAH = which: no javah in (/cygdrive/c/Program Files/Microsoft eMbedded C+
> + 4.0/EVC/wce420/bin:/cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Common
> /EVC/Bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system3
> 2:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem)
> CVM_JAR = which: no jar in (/cygdrive/c/Program Files/Microsoft eMbedded C++
> 4.0/EVC/wce420/bin:/cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Common/E
> VC/Bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:
> /cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem)

The above still says your J2SDK javac installation is not being seen by
the make command.

It looks like your $PATH is not being set correctly.

Trying doing this in a cygwin shell:

export PATH=/cygdrive/c/Java/j2sdk1.4.2_16/bin/:$PATH
which javac

You should see this:

/cygdrive/c/Java/j2sdk1.4.2_16/bin/javac

If you do see the about result, clean your build first and then make
again the same way you did before:

make clean
make J2ME_CLASSLIB=foundation USE_JDBC=true JDBC_DIR=../../../jdbc

> Checking for build-time classes to compile ...
> ... generating PackageManager.java
> java.io.FileNotFoundException: C:\home\OHI\cdc\src\share\tools\xml\empty.xml (Th
> e system cannot find the path specified)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.(Unknown Source)
> at java.io.FileInputStream.(Unknown Source)
> at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
> at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown So
> urce)
> at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent
> Entity(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineD
> ocVersion(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
> nknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
> nknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
> urce)
> at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So
> urce)
> at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk
> nown Source)
> at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
> at com.sun.xml.transform.CodeTransformerImpl.transform(Unknown Source)
> at com.sun.xml.transform.CodeTransformer.main(Unknown Source)
> make: *** [/home/OHI/cdc/build/win32-arm-ppc03/./generated/classes/com/sun/cdc/c
> onfig/PackageManager.java] Error 1

The above problem seems stranger. Hopefully it goes away when you put
the J2SDK 1.4.2 bin on your path.

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Hi Hinkmond,

Here's the result from the J2SDK 1.4.2_16 bin on my path:

$export PATH=/cygdrive/c/Java/j2sdk1.4.2_16/bin/:$PATH

$ which javac
which: no javac in (/cygdrive/c/Java/j2sdk1.4.2_16/bin/:/usr/local/bin:/usr/bin:
/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c
/WINDOWS/System32/Wbem)

Do you know if the jdbc.jar is avail. somewhere to download?

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi Hinkmond,
>
> Here's the result from the J2SDK 1.4.2_16 bin on my path:
>
> $export PATH=/cygdrive/c/Java/j2sdk1.4.2_16/bin/:$PATH
>

Sorry, I should have made clear that the above is just an example. You
should replace the exact path to the ../j2sdk1.4.2_16/bin with wherever
you installed the j2sdk1.4.2_16 on your system.

For example, if you installed to C:\j2sdk1.4.2_16\, then you would do this:

export PATH=/cygdrive/c/j2sdk1.4.2_16/bin/:$PATH

But, again, the above is just an example since I don't know exactly
where you installed j2sdk1.4.2. You will have to adjust it to your system.

After you do it properly, you should see the command "which javac" give
the path correctly to javac.

> Do you know if the jdbc.jar is avail. somewhere to download?
>

Sorry, I don't. You can try to Google it. Let us know if you find one
to download.

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Sorry Hinkmond for taking the example literal. Ok, one error seems to be removed w/ what you suggested, however, that error you called strange appeared. Here are the results:

$make clean
touch /home/OHI/cdc/build/win32-arm-ppc03/./generated/empty.mk
make CVM_TOOLS_BUILD=true tool-clean
make[1]: Entering directory `/home/OHI/cdc/build/win32-arm-ppc03'
rm -rf /home/OHI/cdc/build/win32-arm-ppc03/./jcov
rm -rf /home/OHI/cdc/build/win32-arm-ppc03/./hprof
rm -rf /home/OHI/cdc/build/win32-arm-ppc03/./jvmti/crw
rm -rf /home/OHI/cdc/build/win32-arm-ppc03/./jvmti/hprof
rm -rf /home/OHI/cdc/build/win32-arm-ppc03/./jdwp
rm -rf ././obj/cvmc.o
make[1]: Leaving directory `/home/OHI/cdc/build/win32-arm-ppc03'
make CVM_REBUILD=true clean
make[1]: Entering directory `/home/OHI/cdc/build/win32-arm-ppc03'
make CVM_TOOLS_BUILD=true tool-clean
make[2]: Entering directory `/home/OHI/cdc/build/win32-arm-ppc03'
rm -rf /home/OHI/cdc/build/win32-arm-ppc03/./jcov
rm -rf /home/OHI/cdc/build/win32-arm-ppc03/./hprof
rm -rf /home/OHI/cdc/build/win32-arm-ppc03/./jvmti/crw
rm -rf /home/OHI/cdc/build/win32-arm-ppc03/./jvmti/hprof
rm -rf /home/OHI/cdc/build/win32-arm-ppc03/./jdwp
rm -rf ././obj/cvmc.o
make[2]: Leaving directory `/home/OHI/cdc/build/win32-arm-ppc03'
rm -rf /home/OHI/cdc/install
rm -rf /home/OHI/cdc/build/win32-arm-ppc03/./.*classes
rm -rf /home/OHI/cdc/build/win32-arm-ppc03/./.*.list
rm -rf /home/OHI/cdc/build/win32-arm-ppc03/./.system_properties.c
rm -rf ./.previous.build.flags
rm -rf /home/OHI/cdc/build/win32-arm-ppc03/./generated/classes/sun/misc/BuildFla
gs.java
rm -rf /home/OHI/cdc/build/win32-arm-ppc03/./btclasses \
/home/OHI/cdc/build/win32-arm-ppc03/./testclasses /home/OHI/cdc/b
uild/win32-arm-ppc03/./democlasses *_classes
rm -rf /home/OHI/cdc/build/win32-arm-ppc03/btclasses.zip \
/home/OHI/cdc/build/win32-arm-ppc03/testclasses.zip /home/OHI/cdc
/build/win32-arm-ppc03/democlasses.jar
rm -rf /home/OHI/cdc/build/win32-arm-ppc03/./lib
rm -rf ././obj /home/OHI/cdc/build/win32-arm-ppc03/./bin /home/OHI/cdc/build
/win32-arm-ppc03/./generated/javavm/runtime /home/OHI/cdc/build/win32-arm-ppc03/
./generated/javavm/runtime/opcodeconsts /home/OHI/cdc/build/win32-arm-ppc03/./ge
nerated/javavm/include /home/OHI/cdc/build/win32-arm-ppc03/./generated/classes /
home/OHI/cdc/build/win32-arm-ppc03/./generated/classes/sun/misc /home/OHI/cdc/bu
ild/win32-arm-ppc03/./generated/jni /home/OHI/cdc/build/win32-arm-ppc03/./genera
ted/cni /home/OHI/cdc/build/win32-arm-ppc03/./generated/offsets /home/OHI/cdc/bu
ild/win32-arm-ppc03/./generated/flags /home/OHI/cdc/build/win32-arm-ppc03/./btcl
asses /home/OHI/cdc/build/win32-arm-ppc03/./testclasses /home/OHI/cdc/build/win3
2-arm-ppc03/./democlasses /home/OHI/cdc/build/win32-arm-ppc03/./lib /home/OHI/cd
c/build/win32-arm-ppc03/./lib/security /home/OHI/cdc/build/win32-arm-ppc03/./cla
sses.tools /home/OHI/cdc/build/win32-arm-ppc03/./foundation_classes /home/OHI/cd
c/build/win32-arm-ppc03/./generated/javavm/runtime/jit /home/OHI/cdc/build/win32
-arm-ppc03/./generated/javavm/include/jit /home/OHI/cdc/build/win32-arm-ppc03/./
jcs /home/OHI/cdc/build/win32-arm-ppc03/./generated/classes/java/util /home/OHI/
cdc/build/win32-arm-ppc03/./classes.jcc /home/OHI/cdc/build/win32-arm-ppc03/./bi
n/cvmi.dll
rm: cannot remove `/home/OHI/cdc/build/win32-arm-ppc03/./generated/classes/sun/m
isc': Permission denied
rm: cannot remove `/home/OHI/cdc/build/win32-arm-ppc03/./generated/classes/java/
util': Permission denied
make[1]: *** [clean] Error 1
make[1]: Leaving directory `/home/OHI/cdc/build/win32-arm-ppc03'
make: *** [clean] Error 2

$ make J2ME_CLASSLIB=foundation USE_JDBC=true JDBC_DIR=../../../jdbc
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./generated/javavm/runtime
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./generated/javavm/runtime/jit
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./generated/classes
touch /home/OHI/cdc/build/win32-arm-ppc03/./generated/empty.mk
MAKEFLAGS = JDBC_DIR=../../../jdbc USE_JDBC=true J2ME_CLASSLIB=foundation
CVM_HOST = i686-cygwin-win32
CVM_TARGET = win32-arm-ppc03
SHELL = bash -e
HOST_CC = /usr/bin/cc
HOST_CCC = /usr/bin/g++
ZIP = /usr/bin/zip
FLEX = /usr/bin/flex
BISON = /usr/bin/bison
CVM_JAVA = /cygdrive/c/j2sdk1.4.2_16/bin/java
CVM_JAVAC = /cygdrive/c/j2sdk1.4.2_16/bin/javac
CVM_JAVAH = /cygdrive/c/j2sdk1.4.2_16/bin/javah
CVM_JAR = /cygdrive/c/j2sdk1.4.2_16/bin/jar
TARGET_CC = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/CLARM.EXE
TARGET_CCC = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/CLARM.EXE
TARGET_AS = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/ARMASM.EXE
TARGET_LD = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/LINK.EXE
TARGET_AR = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/LINK.EXE
TARGET_RANLIB = /usr/bin/ranlib
LINKFLAGS = /incremental:no /nologo /map /subsystem:windowsce,3.00 /MACHINE:AR
M
LINKLIBS = -lpthread -ldl
ASM_FLAGS = -CPU StrongARM1 -32 -NOTerse -WIdth 132 -list .lst .i
CCCFLAGS =
CCFLAGS_SPEED = /nologo /c /W2 /MC -D__STDC__ /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_SPACE = /nologo /c /W2 /MC -D__STDC__ /O1 /Ob1 -DNDEBUG
CCFLAGS_LOOP = /nologo /c /W2 /MC -D__STDC__ /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_FDLIB = /nologo /c /W2 /MC -D__STDC__ -DNDEBUG /Od
JAVAC_OPTIONS = -g:none -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -t
arget 1.4
CVM_DEFINES = -DCVM_OPTIMIZED -DCVM_DEBUG_STACKTRACES -DNDEBUG -DCVM_CLASSLOA
DING -DCVM_SERIALIZATION -DCVM_REFLECT -DCVM_DYNAMIC_LINKING -DCVM_JIT -DCVM_JIT
_REGISTER_LOCALS -DCVM_TIMESTAMPING -DJ2ME_CLASSLIB=foundation -DTARGET_CPU_FAMI
LY=arm -DCVM_JIT_COPY_CCMCODE_TO_CODECACHE -DCVM_DLL -DHAVE_64_BIT_IO -DNDEBUG -
DARM -D_ARM -D__RVCT__ -DWINCE -DWIN32_LEAN_AND_MEAN -DWIN32_PLATFORM_PSPC -DUNI
CODE -D_UNICODE -DUNDER_CE=300 -D_WIN32_WCE=300 -DPOCKETPC
host uname = CYGWIN_NT-5.1 OHBC1-CYBER04 1.5.25(0.156/4/2) 2007-12-14 19:
21 i686 Cygwin
TARGET_CC version = Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 f
or ARM
HOST_CC version = 3.4.4 i686-pc-cygwin
CVM_JAVA version = java version 1.4.2_16
TOOLS_DIR = /home/OHI/tools
SDK_DIR = C:/Program Files/Windows CE Tools
VC_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0
PLATFORM_SDK_DIR = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003
PLATFORM_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/w
ce420/bin
COMMON_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Commo
n/EVC/Bin
INCLUDE = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/In
clude/Armv4;C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Mfc/include;
C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Atl/include
LIB = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Li
b/Armv4;C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Mfc/lib/armv4;C:
/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Atl/lib/armv4
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./generated/flags

updating /home/OHI/cdc/build/win32-arm-ppc03/./generated/build_defs.mk ...
... mkdir obj
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./bin
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./generated/javavm/runtime/opcodec
onsts
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./generated/classes/sun/misc
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./generated/jni
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./generated/cni
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./generated/offsets
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./btclasses
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./testclasses
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./democlasses
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./lib
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./lib/security
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./classes.tools
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./foundation_classes
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./generated/javavm/include/jit
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./jcs
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./generated/classes/java/util
... mkdir /home/OHI/cdc/build/win32-arm-ppc03/./classes.jcc
Checking for build-time classes to compile ...
... generating BuildFlags.java
... /home/OHI/cdc/build/win32-arm-ppc03/./generated/classes/sun/misc/BuildFlags.
java
... generating sun.misc.DefaultLocaleList.java
... /home/OHI/cdc/build/win32-arm-ppc03/./generated/classes/sun/misc/DefaultLoca
leList.java
... /home/OHI/tools/output/Configurator.manifest
... building CodeTransformer
... /home/OHI/tools/output/Configurator.jar
... generating PackageManager.java
java.io.FileNotFoundException: C:\home\OHI\cdc\src\share\tools\xml\empty.xml (Th
e system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at java.io.FileInputStream.(FileInputStream.java:66)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
.java:69)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLCon
nection.java:156)
at java.net.URL.openStream(URL.java:913)
at org.apache.crimson.parser.InputEntity.init(InputEntity.java:209)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:638)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)

at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl
.java:185)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:151)
at com.sun.xml.transform.CodeTransformerImpl.transform(Unknown Source)
at com.sun.xml.transform.CodeTransformer.main(Unknown Source)
make: *** [/home/OHI/cdc/build/win32-arm-ppc03/./generated/classes/com/sun/cdc/c
onfig/PackageManager.java] Error 1

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Sorry Hinkmond for taking the example literal. Ok, one error seems to be removed w/ what you suggested, however, that error you called strange appeared. Here are the results:
>
>
>

What happens if you try just building Foundation Profile (no JDBC)?
Like this:

make J2ME_CLASSLIB=foundation

Is that working?

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Hello Hinkmond,

As a test, I have tried this and rec'vd the same error message:

Checking for build-time classes to compile ...
... generating BuildFlags.java
... /home/OHI/cdc/build/win32-arm-ppc03/./generated/classes/sun/misc/BuildFlags.
java
... generating sun.misc.DefaultLocaleList.java
... /home/OHI/cdc/build/win32-arm-ppc03/./generated/classes/sun/misc/DefaultLoca
leList.java
... /home/OHI/tools/output/Configurator.manifest
... building CodeTransformer
... /home/OHI/tools/output/Configurator.jar
... generating PackageManager.java
java.io.FileNotFoundException: C:\home\OHI\cdc\src\share\tools\xml\empty.xml (Th
e system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at java.io.FileInputStream.(FileInputStream.java:66)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
.java:69)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLCon
nection.java:156)
at java.net.URL.openStream(URL.java:913)
at org.apache.crimson.parser.InputEntity.init(InputEntity.java:209)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:638)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)

at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl
.java:185)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:151)
at com.sun.xml.transform.CodeTransformerImpl.transform(Unknown Source)
at com.sun.xml.transform.CodeTransformer.main(Unknown Source)
make: *** [/home/OHI/cdc/build/win32-arm-ppc03/./generated/classes/com/sun/cdc/c
onfig/PackageManager.java] Error 1

Hinkmond Wong

Hi wrappingduke,

phonemeadvanced@mobileandembedded.org wrote:
> Hello Hinkmond,
>
> As a test, I have tried this and rec'vd the same error message:
>
> Checking for build-time classes to compile ...
> ... generating BuildFlags.java
> ... /home/OHI/cdc/build/win32-arm-ppc03/./generated/classes/sun/misc/BuildFlags.
> java
> ... generating sun.misc.DefaultLocaleList.java
> ... /home/OHI/cdc/build/win32-arm-ppc03/./generated/classes/sun/misc/DefaultLoca
> leList.java
> ... /home/OHI/tools/output/Configurator.manifest
> ... building CodeTransformer
> ... /home/OHI/tools/output/Configurator.jar
> ... generating PackageManager.java
> java.io.FileNotFoundException: C:\home\OHI\cdc\src\share\tools\xml\empty.xml (Th
> e system cannot find the path specified)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.(FileInputStream.java:106)
> at java.io.FileInputStream.(FileInputStream.java:66)
> at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
> .java:69)
> at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLCon
> nection.java:156)
> at java.net.URL.openStream(URL.java:913)
> at org.apache.crimson.parser.InputEntity.init(InputEntity.java:209)
> at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:638)
> at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
> at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
>
> at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl
> .java:185)
> at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:151)
> at com.sun.xml.transform.CodeTransformerImpl.transform(Unknown Source)
> at com.sun.xml.transform.CodeTransformer.main(Unknown Source)
> make: *** [/home/OHI/cdc/build/win32-arm-ppc03/./generated/classes/com/sun/cdc/c
> onfig/PackageManager.java] Error 1

Yes, unfortunately I'm seeing the same problem when I build the
win32-arm-pocketpc build for CDC/Foundation Profile from phoneME
Adavanced (pMEA) now.

I'll investigate further. It looks like something new in the tools
Configurator works OK with our win32-arm-wm5 (Windows Mobile 5.0) build
in pMEA, but it does not work with win32-arm-pocketpc build.

I'll have to check with our engineers who know the Configurator. There
is probably some missing file needed for our win32-arm-pocketpc build
that I should backport from our win32-arm-wm5 build to our
win32-arm-pocketpc build.

Will let you know more when I find out...

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Hi Hinkmond,

Unfortunately, I don't have access to Visual Studio 2005 (and it takes sometime to download), so I can't get the sdk for pocket pc for wm 5. Is it possible you can send or make avail. the jdbc.jar? I would greatly appreciate it.

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi Hinkmond,
>
> Unfortunately, I don't have access to Visual Studio 2005 (and it takes sometime to download), so I can't get the sdk for pocket pc for wm 5. Is it possible you can send or make avail. the jdbc.jar? I would greatly appreciate it.
>

Sorry, I cannot make available the jdbc.jar without following an open
source binary release process from Sun, and that would take too long to
do, plus there is no approval from Sun to make jdbc.jar available as an
open source binary. You might want to google search for one or ask the
derby mailing list:

Writing to the list derby-user@db.apache.org
Subscription address derby-user-subscribe@db.apache.org
Digest subscription address derby-user-digest-subscribe@db.apache.org
Unsubscription addresses derby-user-unsubscribe@db.apache.org
Getting help with the list derby-user-help@db.apache.org

But, you shouldn't need VS 2005 and you shouldn't need to build the
win32-arm-wm5 build, since Chris mentioned to me that it might be a
j2sdk1.4.2 version problem with the win32-arm-pocketpc build instead.
Did you install j2sdk1.4.2_16 on your system and is your build picking
up javac from j2sdk1.4.2_16?

I'm doing some testing with using just eVC++ 4.0 (no VS2005) and another
version of j2sdk1.4.2 (not j2sdk1.4.2_02 which I currently have) to see
if that solves the problem... I'll let you know how that testing goes...

Hinkmond

[att1.html]

hinkmond
Offline
Joined: 2003-12-01
Points: 0

Hi Chris,

I tried updating the JDK to j2sdk 1.4.2_16 on levi, but I'm still seeing the error that wrappingduke is seeing:

MAKEFLAGS = J2ME_CLASSLIB=foundation
CVM_HOST = i686-cygwin-win32
CVM_TARGET = win32-arm-pocketpc
SHELL = bash -e
HOST_CC = /usr/bin/cc
HOST_CCC = /usr/bin/g++
ZIP = /usr/bin/zip
FLEX = /usr/bin/flex
BISON = /usr/bin/bison
CVM_JAVA = /cygdrive/c/j2sdk1.4.2_16/bin/java
CVM_JAVAC = /cygdrive/c/j2sdk1.4.2_16/bin/javac
CVM_JAVAH = /cygdrive/c/j2sdk1.4.2_16/bin/javah
CVM_JAR = /cygdrive/c/j2sdk1.4.2_16/bin/jar
TARGET_CC = /cygdrive/c/Program Files/Microsoft eMbedded Tools/EVC/wce300/bin/CLARM.EXE
TARGET_CCC = /cygdrive/c/Program Files/Microsoft eMbedded Tools/EVC/wce300/bin/CLARM.EXE
TARGET_AS = /cygdrive/c/Program Files/Microsoft eMbedded Tools/EVC/wce300/bin/ARMASM.EXE
TARGET_LD = /cygdrive/c/Program Files/Microsoft eMbedded Tools/EVC/wce300/bin/LINK.EXE
TARGET_AR = /cygdrive/c/Program Files/Microsoft eMbedded Tools/EVC/wce300/bin/LINK.EXE
TARGET_RANLIB = /usr/bin/ranlib
LINKFLAGS = /incremental:no /nologo /map /subsystem:windowsce,3.00 /MACHINE:ARM
LINKLIBS = -lpthread -ldl
ASM_FLAGS = -ARCH 4 -CPU StrongARM1 -32 -NOTerse -WIdth 132 -list .lst .i
CCCFLAGS =
CCFLAGS_SPEED = /nologo /c /W2 /MC -D__STDC__ /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_SPACE = /nologo /c /W2 /MC -D__STDC__ /O1 /Ob1 -DNDEBUG
CCFLAGS_LOOP = /nologo /c /W2 /MC -D__STDC__ /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_FDLIB = /nologo /c /W2 /MC -D__STDC__ -DNDEBUG /Od
JAVAC_OPTIONS = -g:none -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -target 1.4
---
... /home/hinkmond/workingcopies/test/tools/output/Configurator.jar
... generating PackageManager.java
java.io.FileNotFoundException: C:\home\hinkmond\workingcopies\test\cdc\src\share\tools\xml\empty.xml (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at java.io.FileInputStream.(FileInputStream.java:66)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:69)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:156)
at java.net.URL.openStream(URL.java:913)
at org.apache.crimson.parser.InputEntity.init(InputEntity.java:209)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:638)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:151)
at com.sun.xml.transform.CodeTransformerImpl.transform(Unknown Source)
at com.sun.xml.transform.CodeTransformer.main(Unknown Source)
make: *** [/home/hinkmond/workingcopies/test/cdc/build/win32-arm-pocketpc/./generated/classes/com/sun/cdc/config/PackageManager.java] Error 1

Can you try building on levi to see if the environment on levi is the problem?

I think there must be something still different on levi (and wrappingduke's system) vs. your system where you are able to build a win32-arm-pocketpc J2ME_CLASSLIB=foundation build without the above error, but we aren't able.

Thanks,

Hinkmond

cjplummer
Offline
Joined: 2006-10-16
Points: 0

I'm doing ppc03 builds, which work fine on both levi and my machine. I'm not setup for pocketpc builds on my machine. However, I had no problem with PackageManager.java with pocketpc builds on levi, but the build did eventually fail because of a tool configuration problem:

cc /home/cjp/phoneme/cdc/src/share/javavm/runtime/gc/generational/gen_semispace.c
gen_semispace.c
c:\home\cjp\phoneme\cdc\src\win32\javavm\include\win32\windows.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
make: *** [obj/gen_semispace.o] Error 2

But this isn't related to the PackageManager.java. BTW, I'm using the trunk in all cases.

Chris

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Here's the command used in the .lnk file:
>
> 01#"\bin\cvm.exe" -f "args.txt"
>
> The .lnk and args files have been both placed in the Storage Card directory. The cvm executable is located in the bin folder.
>

Hi wrappingduke,

If the cvm executable is on the Storage Card, you need to change your
.lnk file to say this instead:

01#"\Storage Card\bin\cvm.exe" -f "\Storage Card\args.txt"

(NOTE: Make sure your args.txt is in the toplevel directory on the
\Storage Card)

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Hello,

Unfortunately, nothing appears in the Debug window. However, I only have Embedded VC++ and SDK for Pocket PC 2003 installed. But the debug window should still appear albeit I don't have Visual Studio installed, right?

Message was edited by: wrappingduke

cjplummer
Offline
Joined: 2006-10-16
Points: 0

>
> Unfortunately, nothing appears in the Debug window.
> However, I only have Embedded VC++ and SDK for Pocket
> PC 2003 installed. But the debug window should still
> appear albeit I don't have Visual Studio installed,
> right?
>

For the emulator choose File -> Configure. Then click on the Peripherals tab and check "Create text console window for serial port 1". This will give you the debug window I was referring to.

Chris

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Hi Chris,

Unfortunately, I wasn't able to enable "Create text console window for serial port 1". This option is "grayed out"

Howver, after placing the .lnk and args in the correct locations, I rec'vd the following error message when the shortcut was double-clicked:

"The file ‘cvm’ cannot be opened. Either it is not signed with a trusted crertifcaite, or one of its components cannot be found. You might need to reinstall or restore this file."

hopefully this helps

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi Chris,
>
> Unfortunately, I wasn't able to enable "Create text console window for serial port 1". This option is "grayed out"
>
> Howver, after placing the .lnk and args in the correct locations, I rec'vd the following error message when the shortcut was double-clicked:
>
> "The file ‘cvm’ cannot be opened. Either it is not signed with a trusted crertifcaite, or one of its components cannot be found. You might need to reinstall or restore this file."

Hi wrappingduke,

Make sure to also try Davy P's Windows Mobile 5.0 (2005) binary on your
Windows Mobile 5.0 emulator:

See:

http://www.cs.kuleuven.ac.be/~davy/phoneme/dist/Personal_Profile-phoneme...

For all binary downloads from Davy P. see:

http://www.cs.kuleuven.ac.be/~davy/phoneme/downloads.htm#windowsmobile2005

You should first eliminate whether or not the error you see above is
because you are running the Pocket PC 2003 binary on your Windows Mobile
5.0 emulator.

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Hello Hinkmond,

I downloaded and implemented Davy P's build for WM 5.0. The result ended up being the same. That is, error msg:

"The file ‘cvm’ cannot be opened. Either it is not signed with a trusted certificate, or one of its components cannot be found. You might need to reinstall or restore this file."

Nothing appeared in the debug console.

Specifically, The Device Emulator is version 2 under WM 5.0 MSFP.

cjplummer
Offline
Joined: 2006-10-16
Points: 0

> "The file ‘cvm’ cannot be opened. Either it is not
> signed with a trusted certificate, or one of its
> components cannot be found. You might need to
> reinstall or restore this file."
>

This is the message I see when the path to cvm.exe in the .lnk file is not valid. Use the File Explorer to verify that you can indeed see cvm.exe at the specified path.

Chirs

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Here's the command used in the .lnk file:

01#"\bin\cvm.exe" -f "args.txt"

The .lnk and args files have been both placed in the Storage Card directory. The cvm executable is located in the bin folder.

cjplummer
Offline
Joined: 2006-10-16
Points: 0

> Here's the command used in the .lnk file:
>
> 01#"\bin\cvm.exe" -f "args.txt"
>
> The .lnk and args files have been both placed in the
> Storage Card directory. The cvm executable is located
> in the bin folder.

"args.txt" needs to be the full path to the file, but this would not be the cause of the problem you are seeing.

Are you sure \bin is a valid path and is not a subdirectory of some other directory? Also, is cvmi.dll also located in \bin? Try navigating to \bin using both IE and File Explorer and confirm the paths and contents.

Chris

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Ok. Per instructions from Wiki page to test executable using Windows Mobile Emulator, I have created a folder named "Storage Card". The Storage Card is comprised of 2 folders (bin & lib), 1 zip file (testclasses) & and 3 files (my executable jar, the shortcut and args files.

No other folders besides the bin and lib folders exists in the Storage Card directory.

In the bin folder are 9 files, which include: cmv.exe, cmv (exp, lib & map) cvmi (lib, map, exp, lst & dll)

In the lib folder are 2 files (foundation & a config file) and 2 directories (security and zi).

As mentioned in the previous post, the shortcut (.lnk) has the following command:

01#"\bin\cvm.exe" -f "args.txt"

What is returned from this cmd is "cmv.exe" in the title of the messagebox w/ the already specified error message.

cjplummer
Offline
Joined: 2006-10-16
Points: 0

If the bin directory is on Storage Card, then the path should be "\Storage Card\bin\cvm.exe".

Chris

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Ok, you're right. here are the results from debug window:

CertVerify: \Storage Card\bin\cvm.exe trust = 2
CertVerify: \Storage Card\bin\cvmi.dll trust = 2
java.lang.ClassNotFoundException: Legitigant_PPC
at sun.misc.Launcher$AppClassLoader.findContainer(Native Method)
at sun.misc.Launcher$AppClassLoader.access$400(Unknown Source)
at sun.misc.Launcher$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Unknown Source)
at java.security.AccessController.doPrivileged(Unknown Source)
at sun.misc.Launcher$AppClassLoader.doClassFind(Unknown Source)
at sun.misc.Launcher$AppClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.CVM.runMain(Unknown Source)

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Ok, you're right. here are the results from debug window:
>
> CertVerify: \Storage Card\bin\cvm.exe trust = 2
> CertVerify: \Storage Card\bin\cvmi.dll trust = 2
> java.lang.ClassNotFoundException: Legitigant_PPC
> at sun.misc.Launcher$AppClassLoader.findContainer(Native Method)
> at sun.misc.Launcher$AppClassLoader.access$400(Unknown Source)
> at sun.misc.Launcher$4.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Unknown Source)
> at java.security.AccessController.doPrivileged(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.doClassFind(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.CVM.runMain(Unknown Source)
>
>

Hi,

Now you have to edit your args.txt file to make sure to have the
"\Storage Card" prefix to the correct location of your zip/jar or class
file that has the MyApp.class main class and all the other supporting
classes like Legitigant_PPC.class

Ex.

args.txt
---

-Djava.class.path="\Storage Card\testclasses.zip" MyApp
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Do you have the testclasses.zip in the correct place on your device?

Does your testclasses.zip file contain the Legitigant_PPC.class file
correctly?

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Hinkmond,

pls. refer to the previous posts to see where I placed testclasses.zip in the Storage Card directory.

What do you mean, "Does your testclasses.zip file contain the Legitigant_PPC.class file correctly?"

Here's the cmd in args.txt (Legitigant_PPC replaces HelloWorld)

-Xmx2m "-Djava.class.path=\Storage Card\testclasses.zip" Legitigant_PPC

the result of the above cmd has been mentioned in the previous post

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hinkmond,
>
> pls. refer to the previous posts to see where I placed testclasses.zip in the Storage Card directory.
>
> What do you mean, "Does your testclasses.zip file contain the Legitigant_PPC.class file correctly?"
>
> Here's the cmd in args.txt (Legitigant_PPC replaces HelloWorld)
>
> -Xmx2m "-Djava.class.path=\Storage Card\testclasses.zip" Legitigant_PPC
>
> the result of the above cmd has been mentioned in the previous post
>

Hi wrappingduke,

You need to:

1. On your PC, transfer and unzip your testclasses.zip file.
2. Examine the contents from step #1.
3. Do you see a file named "Legitigant_PPC.class" from step #2? If not,
you do not have the correct testclasses.zip file to run your
Legitigant_PPC main app.

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Hinkmond,

I don't recall ever seeing a class being created w/ the name of the app itselft. I've seen only classes created that comprise the application. That is, Main.class e.g., or whatever class that has been created w/in a application.

How do I go about building a class w/ the name of the application itself?

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hinkmond,
>
> I don't recall ever seeing a class being created w/ the name of the app itselft. I've seen only classes created that comprise the application. That is, Main.class e.g., or whatever class that has been created w/in a application.
>
> How do I go about building a class w/ the name of the application itself?
>

Hi wrappingduke,

Your questions are starting to diverge from the purpose of this forum
which is phoneME Advanced and instead is starting to be around basic
Java programming.

You might want to try our Java tutorials for help in your understanding
of how to create Java applications:

http://java.sun.com/docs/books/tutorial/

Specifically how to create your own apps by naming the main class:

http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html

So, for example, you wrote an application with a main class that you
named Legitigant_PPC.java. You compiled it with javac into a file named
Legitigant_PPC.class. You zipped that class file into a zip bundle
called testclasses.zip, and now you are trying to run it with these
command line parameters:

-Xmx2m "-Djava.class.path=\Storage Card\testclasses.zip" Legitigant_PPC

If you don't understand the above, it might help for you to review the
above tutorials first and try running your program on a PC before you
attempt to run your program on a WinMobile device using phoneME Advanced.

Hope this helps!

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23
Points: 0

Oh Hinkmond,

Bless your heart. Where do I begin. You make so many wrong assumptions, I really don't know. I wish the only assumption you would have made is me wanting to know the url to those builds you gave, because that would have been the only correct assumption.

Per the Wiki page on how to test in device emulator, it states to use a executable jar file. Legitigant_PPC is an executable jar file. If I had wrote an app named Legitigant_PPC.java, I would naturally think I would have a corresponding .class file for this. But the app was not built w/ javac.

The demo files (i.e. democlasses.jar) in the jre builds are executable jars.

Where does not mention on the wiki page that the HelloWorld has to be a .class file?

You also presumed that the app has ran on a PC. The app has ran using NSIcom's jvm via their emulator.

You state you "hope this helps". Hinkmond, your responses have been asinine at best and the questions you pose are insipid.

Try reading what I write (ask), so you don't presume and as a result arrogate.

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Oh Hinkmond,
>
> Bless your heart. Where do I begin. You make so many wrong assumptions, I really don't know. I wish the only assumption you would have made is me wanting to know the url to those builds you gave, because that would have been the only correct assumption.
>
> Per the Wiki page on how to test in device emulator, it states to use a executable jar file. Legitigant_PPC is an executable jar file. If I had wrote an app named Legitigant_PPC.java, I would naturally think I would have a corresponding .class file for this. But the app was not built w/ javac.
>
> The demo files (i.e. democlasses.jar) in the jre builds are executable jars.
>
> Where does not mention on the wiki page that the HelloWorld has to be a .class file?
>
> You also presumed that the app has ran on a PC. The app has ran using NSIcom's jvm via their emulator.
>
> You state you "hope this helps". Hinkmond, your responses have been asinine at best and the questions you pose are insipid.
>
> Try reading what I write (ask), so you don't presume and as a result arrogate.
> [Message sent by forum member 'wrappingduke' (wrappingduke)]

Hi wrappingduke,

I apologize for my response and my assumptions! Sorry, about the mix
up! :-( I think I see what the misunderstanding is. With the
commandline you gave previously, it was not clear that you understand
you must put your executable JAR in the classpath with phoneME Advance.
You didn't seem to realize that you still need to:

1. Put the executable JAR on the classpath, not the testclasses.zip file
(Where did you get the testclasses.zip file?).

2. Put the main class as the last parameter. If you do not know the
main class you need to open the Legigigant_PPC.jar file and look in the
Manifest file to see what the main class attribute points to.

With NSIcom's JVM, what was your command line? Do you use the "-jar" flag?

The main class in your Legitigant_PPC.jar file is the most important
piece of info missing (see #2 to find out what it is) and where our
misundertanding was. You did not identify that, which you must put on
the command line for phoneME Advanced.

Ex.

-Xmx2m "-Djava.class.path=\Storage Card\Legitigant_PPC.jar"

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net