Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Problem building jdk 1.3 from source for Windows

Reply
Thread Tools

Problem building jdk 1.3 from source for Windows

 
 
Ulas Ergin
Guest
Posts: n/a
 
      11-09-2004
Hi all,
I have downloaded the source for jdk 1.3 from Sun's site.During
compilation in Visual C++ 6.0 SP 6 I am facing a trouble.

Some of tje source files (to name one
\src\share\javavm\include\javastring.h) includes java_lang_String.h.

But the source does not contain any java_lang_String.h.
On the other hand java_lang_String.h comes with standard jdk
distribution in the include-old folder with contains deprecated JNI
headers.

What is the problem here? Why does the jdk source reference
java_lang_String.h but it does not include it?

any help is appreciated,
thx
 
Reply With Quote
 
 
 
 
Thomas Fritsch
Guest
Posts: n/a
 
      11-09-2004
Ulas Ergin wrote:
> Hi all,
> I have downloaded the source for jdk 1.3 from Sun's site.During
> compilation in Visual C++ 6.0 SP 6 I am facing a trouble.
>
> Some of tje source files (to name one
> \src\share\javavm\include\javastring.h) includes java_lang_String.h.
>
> But the source does not contain any java_lang_String.h.
> On the other hand java_lang_String.h comes with standard jdk
> distribution in the include-old folder with contains deprecated JNI
> headers.
>
> What is the problem here? Why does the jdk source reference
> java_lang_String.h but it does not include it?

Don't know the details about JNI, but perhaps *you* have to generate
these h-files from the class-files. For example:
javah java.lang.String
or
javah -jni java.lang.String

(just a guess...)

>
> any help is appreciated,
> thx


--
"Thomas:Fritsch$ops:de".replace(':','.').replace(' $','@')

 
Reply With Quote
 
 
 
 
Ann
Guest
Posts: n/a
 
      11-09-2004

"Ulas Ergin" <> wrote in message
news: om...
> Hi all,
> I have downloaded the source for jdk 1.3 from Sun's site.During
> compilation in Visual C++ 6.0 SP 6 I am facing a trouble.
>
> Some of tje source files (to name one
> \src\share\javavm\include\javastring.h) includes java_lang_String.h.
>
> But the source does not contain any java_lang_String.h.
> On the other hand java_lang_String.h comes with standard jdk
> distribution in the include-old folder with contains deprecated JNI
> headers.
>
> What is the problem here? Why does the jdk source reference
> java_lang_String.h but it does not include it?
>
> any help is appreciated,
> thx


My view of compiling stuff for windows when a binary is available:
Are you nuts?


 
Reply With Quote
 
Ulas Ergin
Guest
Posts: n/a
 
      11-10-2004
"Ann" <> wrote in message news:<cE5kd.77198$R05.22305@attbi_s53>...
>
> My view of compiling stuff for windows when a binary is available:
> Are you nuts?


I completely agree with you Ann but unfortunately I have to.
 
Reply With Quote
 
Ulas Ergin
Guest
Posts: n/a
 
      11-10-2004
Thomas Fritsch <no-> wrote in message news:<>...
> Don't know the details about JNI, but perhaps *you* have to generate
> these h-files from the class-files. For example:
> javah java.lang.String
> or
> javah -jni java.lang.String
>
> (just a guess...)
>


Thank you Thomas,it is worth a try.
 
Reply With Quote
 
Ann
Guest
Posts: n/a
 
      11-10-2004

"Ulas Ergin" <> wrote in message
news: om...
> "Ann" <> wrote in message

news:<cE5kd.77198$R05.22305@attbi_s53>...
> >
> > My view of compiling stuff for windows when a binary is available:
> > Are you nuts?

>
> I completely agree with you Ann but unfortunately I have to.


Well, good luck with it then.


 
Reply With Quote
 
Ulas Ergin
Guest
Posts: n/a
 
      11-11-2004
Hi all,
I generated java_lang_String.h from java.lang.String.class via
javah.Now I have another problem.
interpreter.h defines a struct as

/* from exception.c */
struct Hjava_lang_Throwable;

but neither exception.c (or exception.h) not definition of struct
Hjava_lang_Throwable exists anywhere

anyhelp is appreciated
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JDK 1.5 or JDK 1.6 Pep Java 19 07-15-2007 12:06 AM
regarding JDk 141 and JDK 122 for linux 64 bit Platform Jaggu Java 3 01-08-2007 10:47 AM
What is the difference between J2EE, JDK, JDK-SDK, JRE and J2SE packages ? Ulf Meinhardt Java 0 08-10-2006 07:12 PM
jEdit: compiles JDK 1.5.0 ok, but runs JDK 1.4.1 (why?) Thomas G. Marshall Java 5 08-06-2004 04:12 AM
Help with converting IDS from JDK 1.1 to JDK 1.4 Babar Java 1 05-20-2004 09:11 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57