You are not logged in.

#1 2016-04-25 09:58:33

Yah
Member
Registered: 2016-04-19
Posts: 8

SOLVED: Error: could not open `/usr/local/jre/lib/amd64/jvm.cfg'

Hi there,

I get this error above, if I try building java programs from src, in this case i2p about an AUR.
I hope anyone from you has a clue. I also Reinstall, remove and install following packages:
jre7-openjdk jre8-openjdk jre7-openjdk-headless jre8-openjdk-headless

If I understand this blog post
http://jaykhimani.blogspot.de/2012/09/e … ogram.html
there could be wrong setted environment and also wrong installed binaries, right?
I don't get it realy.
Here the output of "makepkg -sri"

==> Making package: i2p 0.9.25-1 (Mon Apr 25 23:00:21 CEST 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found i2psource_0.9.25.tar.bz2
  -> Found i2psource_0.9.25.tar.bz2.sig
  -> Found i2prouter.service
  -> Found i2prouter.sh
  -> Found wrapper.config
  -> Found router.config
==> Validating source files with sha256sums...
    i2psource_0.9.25.tar.bz2 ... Passed
    i2psource_0.9.25.tar.bz2.sig ... Skipped
    i2prouter.service ... Passed
    i2prouter.sh ... Passed
    wrapper.config ... Passed
    router.config ... Passed
==> Verifying source file signatures with gpg...
    i2psource_0.9.25.tar.bz2 ... Passed
==> Extracting sources...
  -> Extracting i2psource_0.9.25.tar.bz2 with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Error: could not open `/usr/local/jre/lib/amd64/jvm.cfg'
==> ERROR: A failure occurred in build().
    Aborting...

Last edited by Yah (2016-04-27 21:55:24)

Offline

#2 2016-04-25 14:31:39

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: SOLVED: Error: could not open `/usr/local/jre/lib/amd64/jvm.cfg'

Hi, and welcome to the Arch Linux forums.   Can I ask you to please edit your post with English output?  https://wiki.archlinux.org/index.php/Fo … s_and_code
tl;dr:  Prepend LC_ALL=C to your command.

How are you trying to install that?  makepkg? an AUR helper?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-04-25 21:04:32

Yah
Member
Registered: 2016-04-19
Posts: 8

Re: SOLVED: Error: could not open `/usr/local/jre/lib/amd64/jvm.cfg'

ewaller wrote:

Hi, and welcome to the Arch Linux forums.   Can I ask you to please edit your post with English output?  https://wiki.archlinux.org/index.php/Fo … s_and_code
tl;dr:  Prepend LC_ALL=C to your command.

Thanks for the advise!

How are you trying to install that?  makepkg? an AUR helper?

I using makepkg (-sri) exclusiv (I added the command also in my first post.

Offline

#4 2016-04-25 21:11:40

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,784
Website

Re: SOLVED: Error: could not open `/usr/local/jre/lib/amd64/jvm.cfg'

Please post the output of

archlinux-java status

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2016-04-26 23:16:09

Yah
Member
Registered: 2016-04-19
Posts: 8

Re: SOLVED: Error: could not open `/usr/local/jre/lib/amd64/jvm.cfg'

WorMzy wrote:

Please post the output of

archlinux-java status

The report:

Available Java environments:
  java-7-openjdk (default)

Offline

#6 2016-04-27 09:29:51

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,784
Website

Re: SOLVED: Error: could not open `/usr/local/jre/lib/amd64/jvm.cfg'

Okay, that looks fine. Java environment setting is a bit of a black art to me, but have you manually set JAVA_HOME somewhere in your shell initialization files, or in '/etc/apache-ant/ant.conf' or '/etc/profile.d/jre.sh'?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2016-04-27 15:30:46

Yah
Member
Registered: 2016-04-19
Posts: 8

Re: SOLVED: Error: could not open `/usr/local/jre/lib/amd64/jvm.cfg'

WorMzy wrote:

Okay, that looks fine. Java environment setting is a bit of a black art to me, but have you manually set JAVA_HOME somewhere in your shell initialization files, or in '/etc/apache-ant/ant.conf' or '/etc/profile.d/jre.sh'?

JAVA_HOME seems not be set. In the files you ask it isn't and echo $JAVA_HOME report nothing. I set it manual and i could compile i2p. I will set it in the '/etc/profile/jre.sh' or would advise another place?

btw, thanks for your time.

Offline

#8 2016-04-28 13:46:36

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: SOLVED: Error: could not open `/usr/local/jre/lib/amd64/jvm.cfg'


Matt

"It is very difficult to educate the educated."

Offline

Board footer

Powered by FluxBB