This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: a question


mohammed hegazy wrote:
> Dear All,

> To avoid the dependency of the binary on any other files so i
> compiled but with the static linking option , is it sufficient ? the
> binary now is larger as andrew said , but when i run the binary the
> following error is appeared :

> Caused by: java.util.MissingResourceException: Bundle
> gnu/java/util/regex/MessagesBundle not found

You need to look to see if MessagesBundle has been built into your
binary.  You will need to make sure you have linked all of libgcj.

But statically linking with libgcj is hard.  Did you try linking
dynamically?  Did it work?

> Caused by: java.lang.NullPointerException
>   at java.io.InputStreamReader.read(Unknown Source)
>   at java.io.BufferedReader.fill(Unknown Source)
>   at java.io.BufferedReader.readLine(Unknown Source)
>   at java.util.Properties.load(Unknown Source)
>   at java.util.Properties.load(Unknown Source)
>   at java.util.Calendar.(Unknown Source)
>   at java.lang.Class.initializeClass(Unknown Source)
>   ...18 more

I don't know what caused that.

> Andrew , is this true way to make a binary that can run without
> libgcj and jar files libraries or it is better to use the way that
> you illustrated , and if yes , please tell me some details .

I have no way to know what you did.  You didn't tell us anything.

If anyone is to help you, you have to tell them what you did, and
give them some way to reproduce it.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]