Latest commit - compile failure

162 views
Skip to first unread message

DRL-XM43

unread,
Nov 23, 2019, 2:22:08 PM11/23/19
to sdrtrunk
see attached for issue.
Capture comp.PNG

sdrtrunk

unread,
Nov 23, 2019, 4:58:21 PM11/23/19
to sdrtrunk
I removed the 'buildSDR' gradle target from the build script.  You should be able to just use: ./gradlew clean build

Denny

On Saturday, November 23, 2019 at 2:22:08 PM UTC-5, DRL-XM43 wrote:
see attached for issue.

Hans

unread,
Nov 23, 2019, 6:23:11 PM11/23/19
to sdrtrunk
Denny,

My build finishes successfully but upon trying to run using java -jar I get the following:

no main manifest attribute, in build/libs/sdr-trunk-0.4.0-beta.1.jar

Trying to execute the script/sdr-trunk results in:

Error: Could not find or load main class io.github.dsheirer.gui.SDRTrunk
Caused by: java.lang.ClassNotFoundException: io.github.dsheirer.gui.SDRTrunk

I tried adding the Main-class of io.github.dsheirer.gui.SDRTrunk to the jar section of the build.gradle file and get the same results.

DRL-XM43

unread,
Nov 23, 2019, 6:40:33 PM11/23/19
to sdrtrunk
Thanks Denny, that is for Linux what would be the Win command prompt compile instruction
Doug

Imago Trigger

unread,
Nov 23, 2019, 7:36:37 PM11/23/19
to DRL-XM43, sdrtrunk
i used buildsdr gradle task from jetbrains intellij on win10
--
You received this message because you are subscribed to the Google Groups "sdrtrunk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sdrtrunk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sdrtrunk/43dbce4a-1597-41bc-a328-ff066bbfe927%40googlegroups.com.

Hans

unread,
Nov 23, 2019, 8:58:42 PM11/23/19
to sdrtrunk
I see your updates to the readme file now, and it all makes sense.  I'm able to open the distribution without any problems.

Thanks much.

Hans

DRL-XM43

unread,
Nov 24, 2019, 12:09:23 AM11/24/19
to sdrtrunk
Denny I followed this....

Windows

gradlew.bat clean build

The /build/distributions folder will contain the zip file of the compiled program. Unzip it and launch the program from the scripts in the /bin directory.


The compile seems to work fine'


comp1.PNG


But neither the win batch or the jar executable  launches?

sdrtrunk

unread,
Nov 24, 2019, 4:02:22 AM11/24/19
to sdrtrunk
Ok, let me dig into this.

sdrtrunk

unread,
Nov 24, 2019, 5:22:41 AM11/24/19
to sdrtrunk
Doug,

You can download the latest sdrtrunk Version 0.4.0 Beta 1 from the github releases page, unzip, and run the application from there.

However, if you want to compile the latest source code yourself from master and produce a compiled application that you can run, here's the steps that I followed:

I'm using a Win10 laptop with Liberica OpenJDK 13.0.1 installed.

Download sdrtrunk master branch source code from: https://github.com/DSheirer/sdrtrunk/archive/master.zip

Unzip the source code and open a command prompt to the same folder.

Execute gradlew.bat clean build

Change directory to the build/distributions folder.

Unzip the compiled/generated sdrtrunk distribution file sdr-trunk-0.4.0-beta.1.zip

Change directory into the bin directory that was unzipped in the previous step

Run the batch file sdr-trunk.bat

Denny


On Sunday, November 24, 2019 at 12:09:23 AM UTC-5, DRL-XM43 wrote:

DRL-XM43

unread,
Nov 24, 2019, 11:33:10 AM11/24/19
to sdrtrunk
Thank you Denny.

The pre-compiled asset (launch by win batch file works fine for me.) Just a suggestion about the instructions, the Assets (where you select your OS download) is a collapsed box which needs to be expanded to see the download links.I am sure many questions will be avoided if the instructions mentioned expanding the Asset box or having it default to expanded.

The pre-compiled asset launches two things, A load progress DOS type black page and the main program interface. I guess I am not used to seeing either the entire directory structure or the load progress page. Prior there was just a single application jar file which I could just port to a location and run. 

How much of the entire directory structure is required if I go for a transfer to another H/W platform, all of it?

My compile - I did follow your steps exactly, its just the created batch file from the after compile unzip just does not run for me. However I can run the pre-compiled batch so I am not stuck in any way also my single pre production executable jar file.

Again, Thank you Denny.... the Multiplatform SDRtrunk is a game changer!!! Great job it is working excellent!!!

sdrtrunk

unread,
Nov 25, 2019, 4:17:35 AM11/25/19
to sdrtrunk
When you move to another computer, all of the code from the final output zip file is required.  
Reply all
Reply to author
Forward
0 new messages