Other [IOT] problem with orangepi

derez

Expert
Licensed User
Longtime User
I try to run a b4j non-ui application using b4j-bridge.
I get this error - "Unsupported major.minor version 52.0" :
The application code is simple:
B4X:
'Non-UI application (console / server application)
#Region  Project Attributes
    #CommandLineArgs:
    #MergeLibraries: True
#End Region

Sub Process_Globals

    Private srvr As Server
End Sub

Sub AppStart (Args() As String)
    Try
        srvr.Initialize("srvr")
        srvr.Port = 53500
        srvr.AddHandler("/reboot", "Reboot", False)
        srvr.AddHandler("/shutdown", "shutdown", False)
        srvr.Start
        Log("Server started")
        StartMessageLoop
    Catch
        Log("Not started !")
    End Try
End Sub

The same problem shows when running directly from the orangepi.
Help ?
 
Last edited:

derez

Expert
Licensed User
Longtime User
I have found that I have java 7 in the orangepi.
I have a problem of space so I need to remove it before installing 8.
How do I uninstall java 7 which came in the raspbian ?
 
Upvote 0

derez

Expert
Licensed User
Longtime User

Attachments

  • java.png
    33.6 KB · Views: 216
Last edited:
Upvote 0

dar2o3

Active Member
Licensed User
Longtime User
To select the version of java and javac use these commands.

B4X:
sudo update-alternatives --config javac
sudo update-alternatives --config java
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…