elective-stereophonic
elective-stereophonic
NxtMint Java minter  
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client: Nxt 1.11.15

Pages: 1 [2] 3 4 ... 20  All

Author Topic: NxtMint Java minter  (Read 50808 times)

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #20 on: January 17, 2015, 03:00:04 am »

Thanks for the quick response. I installed Java 8. Could you please write a detailed guide for us to compile or install the program?
I updated the header post with the steps needed to install and run the program.  Let me know if there are any steps missing or unclear.

The README has the build steps.  I use Maven which automates everything, including downloading any required dependencies.  The only manual step is obtaining Aparapi since it is not in the Maven central repository.  If you want to build NxtMint, you will need to install the aparapi.jar file in your local Maven repository.  This is done using the mvn install:install-file target.  I'll add the complete command syntax to the README.
Logged

colin012

  • Hero Member
  • *****
  • Karma: +65/-18
  • Offline Offline
  • Posts: 851
  • NXTOrganization Marketing
    • View Profile
Re: NxtMint Java minter
« Reply #21 on: January 17, 2015, 03:01:43 am »

I think we need a easy mint.bat to help us computer dumbs.
I have no clue how to run .jar extension  ;D

We can package a run.bat and run.sh file like NXT does so you just have to double click something and it will run for you. (NXT used to run out of a jar too if I am remembering right).
Logged
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬  ▄▀▀▀▀▀▀▀▀▄  ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬●  nimirum  ●▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
▬▬▬ ◖ENDING CENSORSHIP ONLINE◗  ◖ ICO OPEN NOW◗ ▬▬▬

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #22 on: January 17, 2015, 03:03:24 am »

I think we need a easy mint.bat to help us computer dumbs.
I have no clue how to run .jar extension  ;D
You should be able to just double-click the jar file.  If that doesn't work, use a text editor to create mint.bat and enter the following command:
    java -Xmx256m -jar NxtMint-1.0.0.jar

I'll add mint.bat and mint.sh files for the next release.
« Last Edit: January 17, 2015, 04:27:28 am by ScripterRon »
Logged

Jimmy2011

  • Sr. Member
  • ****
  • Karma: +24/-19
  • Offline Offline
  • Posts: 329
    • View Profile
Re: NxtMint Java minter
« Reply #23 on: January 17, 2015, 03:18:00 am »


I just installed JDK 1.8, and got a new error.

Code: [Select]
Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'

has value '1.8', but '1.7' is required.
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.
Logged
NXT-LX5G-L63N-ST8S-9LVZY

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #24 on: January 17, 2015, 03:19:23 am »

Got a real-time test of the minting queuing (NRS took 25 minutes to find a block from 9:06 to 9:31).  Had me worried because I thought NxtMint was dropping transactions, but the backlog cleared once NRS started confirming transactions again.

Code: [Select]
9:06:52 INFO MintWorker.run: Worker 0 found solution for counter 169
09:06:52 FINE Mint.mint: Solution for counter 169 added to pending queue
09:06:53 INFO Mint.mint: Solution for counter 169 submitted
09:17:09 INFO MintWorker.run: Worker 4 found solution for counter 170
09:17:09 FINE Mint.mint: Solution for counter 170 added to pending queue
09:23:06 INFO MintWorker.run: Worker 4 found solution for counter 171
09:23:11 FINE Mint.mint: Solution for counter 171 added to pending queue
09:31:13 INFO Mint.mint: Solution for counter 170 submitted
09:45:47 INFO Mint.mint: Solution for counter 171 submitted
09:57:05 FINE Mint.mint: Solution for counter 172 added to pending queue
09:57:05 INFO Mint.mint: Solution for counter 172 submitted
Logged

Djinou94

  • Full Member
  • ***
  • Karma: +3/-5
  • Offline Offline
  • Posts: 193
    • View Profile
Re: NxtMint Java minter
« Reply #25 on: January 17, 2015, 03:20:13 am »

Minting with this minter is better? faster?
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #26 on: January 17, 2015, 03:25:27 am »


I just installed JDK 1.8, and got a new error.

Code: [Select]
Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'

has value '1.8', but '1.7' is required.
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.
What were you doing when you got that error?  NxtMint requires 1.8, so that shouldn't be the source of the error.  What is displayed for the command:  java -version
Logged

qqNxt

  • Full Member
  • ***
  • Karma: +18/-1
  • Offline Offline
  • Posts: 174
    • View Profile
    • http://www.myfreenxt.com/
Re: NxtMint Java minter
« Reply #27 on: January 17, 2015, 03:30:18 am »

java -Xmx256m -jar Nxt-1.0.0.jar
Error: Unable to access jarfile Nxt-1.0.0.jar
Logged
http://www.myfreenxt.com/
NXT-8PGJ-JWZM-BRN9-59Y3L

Jimmy2011

  • Sr. Member
  • ****
  • Karma: +24/-19
  • Offline Offline
  • Posts: 329
    • View Profile
Re: NxtMint Java minter
« Reply #28 on: January 17, 2015, 03:37:50 am »


I just installed JDK 1.8, and got a new error.

Code: [Select]
Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'

has value '1.8', but '1.7' is required.
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.
What were you doing when you got that error?  NxtMint requires 1.8, so that shouldn't be the source of the error.  What is displayed for the command:  java -version

Done.

'java -version' reported the same error.

I installed JDK 1.8 when Nxt is running. So I think I need to reboot computer and reinstall JDK 1.8. After that and reinstall, everything goes well.

Thanks.
Logged
NXT-LX5G-L63N-ST8S-9LVZY

colin012

  • Hero Member
  • *****
  • Karma: +65/-18
  • Offline Offline
  • Posts: 851
  • NXTOrganization Marketing
    • View Profile
Re: NxtMint Java minter
« Reply #29 on: January 17, 2015, 03:45:53 am »

java -Xmx256m -jar Nxt-1.0.0.jar
Error: Unable to access jarfile Nxt-1.0.0.jar

I think he meant NxtMint-1.0.0.jar rather than Nxt-1.0.0.jar. Try that instead.
Logged
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬  ▄▀▀▀▀▀▀▀▀▄  ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬●  nimirum  ●▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
▬▬▬ ◖ENDING CENSORSHIP ONLINE◗  ◖ ICO OPEN NOW◗ ▬▬▬

qqNxt

  • Full Member
  • ***
  • Karma: +18/-1
  • Offline Offline
  • Posts: 174
    • View Profile
    • http://www.myfreenxt.com/
Re: NxtMint Java minter
« Reply #30 on: January 17, 2015, 04:16:45 am »

edit: I forgot to copy to application data.

SEVERE Main.main: Exception during program initialization
java.lang.IllegalArgumentException:Secret phrase not specified
at org.ScripterRon.NxtMint.Main.main<Main.java:186>

I did provide the secret phrase. and I did copy and rename to NxtMint.conf
currency=EGOLD
units=100
cpuThreads=1
gpuIntensity=0
enableGUI=true
« Last Edit: January 17, 2015, 04:19:43 am by qqNxt »
Logged
http://www.myfreenxt.com/
NXT-8PGJ-JWZM-BRN9-59Y3L

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #31 on: January 17, 2015, 04:26:10 am »

Done.

'java -version' reported the same error.

I installed JDK 1.8 when Nxt is running. So I think I need to reboot computer and reinstall JDK 1.8. After that and reinstall, everything goes well.

Thanks.
That makes sense.  The java.dll would have been in use and the installer couldn't replace it with the new version.  Thus the mismatch error.
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #32 on: January 17, 2015, 04:28:38 am »

I think he meant NxtMint-1.0.0.jar rather than Nxt-1.0.0.jar. Try that instead.
Whoops - NxtMint-1.0.0.jar is right.  I'll modify the post.
Logged

qqNxt

  • Full Member
  • ***
  • Karma: +18/-1
  • Offline Offline
  • Posts: 174
    • View Profile
    • http://www.myfreenxt.com/
Re: NxtMint Java minter
« Reply #33 on: January 17, 2015, 04:31:30 am »

one last problem and i'll graduate from running the java minter!  ;D

the program is running now but I can't tell if its doing any calculations/mhs
the log box is just empty.

is this normal? im using gpu and I have aparapi in the nxtmint directory.
Logged
http://www.myfreenxt.com/
NXT-8PGJ-JWZM-BRN9-59Y3L

jasemoney

  • Newbie
  • *
  • Karma: +1/-0
  • Offline Offline
  • Posts: 9
    • View Profile
Re: NxtMint Java minter
« Reply #34 on: January 17, 2015, 04:36:46 am »

edit: I forgot to copy to application data.

SEVERE Main.main: Exception during program initialization
java.lang.IllegalArgumentException:Secret phrase not specified
at org.ScripterRon.NxtMint.Main.main<Main.java:186>

I did provide the secret phrase. and I did copy and rename to NxtMint.conf
currency=EGOLD
units=100
cpuThreads=1
gpuIntensity=0
enableGUI=true

ahh which data directory?? same trouble.  all my nxt is in a folder on my desktop. copied everything aparapi and nxtminet there. changed logger and conf, and copied them into conf.. still actin weird

*edit ya didnt realize it made a folder nxtmint in %appdata%
not on to next bit, figuring out the PATH
« Last Edit: January 17, 2015, 04:49:45 am by jasemoney »
Logged

qqNxt

  • Full Member
  • ***
  • Karma: +18/-1
  • Offline Offline
  • Posts: 174
    • View Profile
    • http://www.myfreenxt.com/
Re: NxtMint Java minter
« Reply #35 on: January 17, 2015, 04:43:28 am »

one last problem and i'll graduate from running the java minter!  ;D

the program is running now but I can't tell if its doing any calculations/mhs
the log box is just empty.

is this normal? im using gpu and I have aparapi in the nxtmint directory.
my computer is heating up and fan running louder, it should be running but all I see is blank box.


ahh which data directory?? same trouble.  all my nxt is in a folder on my desktop. copied everything aparapi and nxtminet there. changed logger and conf, and copied them into conf.. still actin weird

found this in readme.md
- Linux: user-home/.NxtMint      
      - Mac: user-home/Library/Application Support/NxtMint   
      
- Windows: user-home\AppData\Roaming\NxtMint
« Last Edit: January 17, 2015, 04:46:42 am by qqNxt »
Logged
http://www.myfreenxt.com/
NXT-8PGJ-JWZM-BRN9-59Y3L

Admiral Ackbar

  • Jr. Member
  • **
  • Karma: +3/-0
  • Offline Offline
  • Posts: 28
    • View Profile
Re: NxtMint Java minter
« Reply #36 on: January 17, 2015, 04:43:38 am »

I am on Linux 64bit. CPU hashing works. Now I am trying to get the AMD started. Got the AMD SDK and aparapi. But I get this:

11:36:01 SEVERE OpenCLLoader.<clinit>: Check your environment. Failed to load aparapi native library aparapi_x86_64 or possibly failed to locate opencl native library (opencl.dll/opencl.so). Ensure that both are in your PATH (windows) or in LD_LIBRARY_PATH (linux).

Seems something is not in the right folder. Can you give a hint which file needs to be where?
Logged

Jimmy2011

  • Sr. Member
  • ****
  • Karma: +24/-19
  • Offline Offline
  • Posts: 329
    • View Profile
Re: NxtMint Java minter
« Reply #37 on: January 17, 2015, 04:50:02 am »

one last problem and i'll graduate from running the java minter!  ;D

the program is running now but I can't tell if its doing any calculations/mhs
the log box is just empty.

is this normal? im using gpu and I have aparapi in the nxtmint directory.

I think you may need to download https://github.com/ScripterRon/NxtMint/blob/master/sample.logging.properties

and
Code: [Select]
Copy sample.logging.properties to the application data directory and rename it to logging.properties.

BTW, could the log show how many hashes have been calculated as that in the original CPU mint.exe ?
Logged
NXT-LX5G-L63N-ST8S-9LVZY

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #38 on: January 17, 2015, 04:51:10 am »

edit: I forgot to copy to application data.

SEVERE Main.main: Exception during program initialization
java.lang.IllegalArgumentException:Secret phrase not specified
at org.ScripterRon.NxtMint.Main.main<Main.java:186>

I did provide the secret phrase. and I did copy and rename to NxtMint.conf
currency=EGOLD
units=100
cpuThreads=1
gpuIntensity=0
enableGUI=true

ahh which data directory?? same trouble.  all my nxt is in a folder on my desktop. copied everything aparapi and nxtminet there. changed logger and conf, and copied them into conf.. still actin weird
The default application data directory on Windows is C:\Users\user-name\AppData\Roaming\NxtMint (this is a Microsoft convention since they want to separate shared program data and user-specific data).  However, you can put everything into the same directory by specifying -Dnxt.datadir=directory-path on the Java command line where directory-path is the directory where you installed NxtMint.

I generally prefer the separation of programs and data since that allows me to install new versions of a program in a separate directory and still have access to the program data without copying files back and forth between versions.
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #39 on: January 17, 2015, 04:55:46 am »

one last problem and i'll graduate from running the java minter!  ;D

the program is running now but I can't tell if its doing any calculations/mhs
the log box is just empty.

is this normal? im using gpu and I have aparapi in the nxtmint directory.
Did you create logging.properties in the application data directory?  The default logging.properties does not log debug (FINE) messages.

I forgot to include a sample in the release archive.  I posted the sample in an earlier post or you can get it from GitHub (http://github.com/ScripterRon/NxtMint) and look for sample.logging.properties.  Paste it into a text editor and save it as logging.properties.
Logged
Pages: 1 [2] 3 4 ... 20  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly