Not sure why the latest installer puts this in /Library instead of /System/Library (nor what the difference is). But /usr/libexec/java_home doesn't find 1.8, so all the posts I've found on how to set your current java version don't work. I've tried adding a symbolic link to make it look like 1.8 is in the /System/Library... path, but it doesn't help. /usr/libexec/java_home -V still only lists the old Java 1.6.
You can determine which version of the JDK is the default by typing java -version in a Terminal window. If the installed version is 8u6, you will see a string that includes the text 1.8.0_06. For example:
Java 8 For Mac Os Sierra
In this step, we will test whether Java is already installed or not. To do so, open the terminal and type java -version as shown in Fig 1. It shows that Java is not installed on my system and also opens a dialog to get more info. It might show existing version of Java if it is already installed on your system.
Note: The 1.8.0_25.jdk part should be replaced by whatever Java version you have installed if you have a different version to 1.8. To check which version of Java you have installed simply type: java -version in Terminal:
I am running 10.13.1 High Sierra Beta, and I cannot remove the java. I keep getting a newer version is installed on my machine warning.Are there different approaches in High Sierra compared to Sierra, etc? I tried the Terminal solutions, and tried remove all the Java stuff from Library. No luck.I need the older version because of a program that I have to run for work.Thanks
java -version command works for me. But mvn --version still says mv command not found I have following in bash_profile JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home export PATH JAVA_HOME J2=$JAVA_HOME/bin export PATH J2 M2_HOME=/Applications/apache-maven-3.4.5 export PATH M2_HOME M2=$M2_HOME/bin export PATH M2
If you have a modern Oracle version of Java, you can tell from the command line by typingjava -versionin Terminal. Currently, this should produce a response such asjava version "9.0.1"Java(TM) SE Runtime Environment (build 9.0.1+11)Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
POSEIDON: mdantasf$ cd /Volumes/DEVELOPMENT/tools/ReadyAPI-2.0.2/binPOSEIDON:bin mdantasf$ lsactions loadtestrunner.sh reports soapui-log4j.xml uninstallactiontrack.sh wargenerator.shext ready-api-splash.png scripts starter-page-pro.html updateinstallation.shinstallationcomplete.sh ready-api-ui-2.0.2.jar securitytestrunner.sh testrunner.sh virtrunner.shlisteners ready-api.sh setfreedebugport.sh toolrunner.sh virtserver-cli.shPOSEIDON:bin mdantasf$ sh ready-api.sh================================== READY_API_HOME = /Volumes/DEVELOPMENT/tools/ReadyAPI-2.0.2=================================Listening for transport dt_socket at address: 53677- No base packages specified - no classpath scanning will be done- Starting 'LifecycleManager@2951941'- Hibernate Validator 4.1.0.Final- Adding module 'com.smartbear.ready.ui.ReadyApiUiModuleJul 17, 2017 9:38:22 PM com.google.inject.assistedinject.FactoryProvider2 isValidForOptimizedAssistedInjectWARNING: AssistedInject factory com.smartbear.servicev.view.SvpViewFactory will be slow because class com.smartbear.servicev.view.virt.http.HttpVirtSetupView has assisted Provider dependencies or injects the Injector. Stop injecting @Assisted Provider (instead use @Assisted T) or Injector to speed things up. (It will be a 6500% speed bump!) The exact offending deps are: [Key[type=com.google.inject.Injector, annotation=[none]]@com.smartbear.servicev.view.virt.http.HttpVirtSetupView.()[6]]Jul 17, 2017 9:38:22 PM com.google.inject.assistedinject.FactoryProvider2 isValidForOptimizedAssistedInjectWARNING: AssistedInject factory com.smartbear.servicev.view.SvpViewFactory will be slow because class com.smartbear.servicev.view.virt.jdbc.JdbcVirtSetupView has assisted Provider dependencies or injects the Injector. Stop injecting @Assisted Provider (instead use @Assisted T) or Injector to speed things up. (It will be a 6500% speed bump!) The exact offending deps are: [Key[type=com.google.inject.Injector, annotation=[none]]@com.smartbear.servicev.view.virt.jdbc.JdbcVirtSetupView.()[8]]Jul 17, 2017 9:38:22 PM com.google.inject.assistedinject.FactoryProvider2 isValidForOptimizedAssistedInjectWARNING: AssistedInject factory com.smartbear.servicev.view.SvpViewFactory will be slow because class com.smartbear.servicev.view.virt.jms.JmsVirtSetupView has assisted Provider dependencies or injects the Injector. Stop injecting @Assisted Provider (instead use @Assisted T) or Injector to speed things up. (It will be a 6500% speed bump!) The exact offending deps are: [Key[type=com.google.inject.Injector, annotation=[none]]@com.smartbear.servicev.view.virt.jms.JmsVirtSetupView.()[4]]Configuring log4j from [/Volumes/DEVELOPMENT/tools/ReadyAPI-2.0.2/bin/soapui-log4j.xml]21:38:31,449 INFO [license] Ready! API 2.0.2 started - System properties: OS=Mac OS X, User name=mdantasf21:38:31,504 INFO [DefaultSoapUICore] No JDBC drivers found in extensions directory21:38:31,737 INFO [DefaultSoapUICore] initialized soapui-settings from [/Users/mdantasf/soapui-settings.xml]21:38:32,645 INFO [DefaultSoapUICore] Adding listeners from [/Volumes/DEVELOPMENT/tools/ReadyAPI-2.0.2/bin/listeners/demo-listeners.xml]21:38:32,669 WARN [SoapUIJasperReportManager] The path to the report directory has been set to the default value because the report format has changed. Please update your custom reports if you want to use them with Ready!API 2.0.21:38:35,487 INFO [PluginManager] 0 plugins loaded in 3 ms21:38:35,487 INFO [DefaultSoapUICore] All plugins loaded21:38:37,685 ERROR [DashboardSchemaChecker] Failed do update dashboard db.org.h2.jdbc.JdbcSQLException: File corrupted while reading record: "514 of 20". Possible solution: use the recovery tool [90030-176]at org.h2.message.DbException.getJdbcSQLException(DbException.java:344)at org.h2.message.DbException.get(DbException.java:178)at org.h2.message.DbException.get(DbException.java:154)at org.h2.store.PageStore.readPage(PageStore.java:1322)at org.h2.store.PageStore.getPage(PageStore.java:750)at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:234)at org.h2.index.PageDataIndex.writeRowCount(PageDataIndex.java:552)at org.h2.index.PageDataIndex.close(PageDataIndex.java:482)at org.h2.store.PageStore.recover(PageStore.java:1428)at org.h2.store.PageStore.openExisting(PageStore.java:368)at org.h2.store.PageStore.open(PageStore.java:289)at org.h2.engine.Database.getPageStore(Database.java:2366)at org.h2.engine.Database.open(Database.java:657)at org.h2.engine.Database.openDatabase(Database.java:260)at org.h2.engine.Database.(Database.java:254)at org.h2.engine.Engine.openSession(Engine.java:57)at org.h2.engine.Engine.openSession(Engine.java:164)at org.h2.engine.Engine.createSessionAndValidate(Engine.java:142)at org.h2.engine.Engine.createSession(Engine.java:125)at org.h2.engine.Engine.createSession(Engine.java:27)at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:331)at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:107)at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:91)at org.h2.Driver.connect(Driver.java:74)at org.h2.jdbcx.JdbcDataSource.getJdbcConnection(JdbcDataSource.java:191)at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:354)at org.h2.jdbcx.JdbcDataSource.getPooledConnection(JdbcDataSource.java:386)at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(JdbcConnectionPool.java:228)at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:200)at com.smartbear.ready.db.init.liquibase.DashboardSchemaChecker.getLiquibase(DashboardSchemaChecker.java:101)at com.smartbear.ready.db.init.liquibase.DashboardSchemaChecker.checkDbState(DashboardSchemaChecker.java:74)at com.smartbear.ready.db.init.liquibase.DashboardSchemaChecker.checkAndUpgradeDb(DashboardSchemaChecker.java:110)at com.smartbear.ready.db.init.liquibase.DashboardSchemaChecker.access$0(DashboardSchemaChecker.java:104)at com.smartbear.ready.db.init.liquibase.DashboardSchemaChecker$1.run(DashboardSchemaChecker.java:55)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)at java.lang.Thread.run(Thread.java:748)21:38:41,041 ERROR [LiquibaseSchemaVersionChecker] Failed to check schema version.org.h2.jdbc.JdbcSQLException: File corrupted while reading record: "514 of 66". Possible solution: use the recovery tool [90030-176]at org.h2.message.DbException.getJdbcSQLException(DbException.java:344)at org.h2.message.DbException.get(DbException.java:178)at org.h2.message.DbException.get(DbException.java:154)at org.h2.store.PageStore.readPage(PageStore.java:1322)at org.h2.store.PageStore.getPage(PageStore.java:750)at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:234)at org.h2.index.PageDataIndex.writeRowCount(PageDataIndex.java:552)at org.h2.index.PageDataIndex.close(PageDataIndex.java:482)at org.h2.store.PageStore.recover(PageStore.java:1428)at org.h2.store.PageStore.openExisting(PageStore.java:368)at org.h2.store.PageStore.open(PageStore.java:289)at org.h2.engine.Database.getPageStore(Database.java:2366)at org.h2.engine.Database.open(Database.java:657)at org.h2.engine.Database.openDatabase(Database.java:260)at org.h2.engine.Database.(Database.java:254)at org.h2.engine.Engine.openSession(Engine.java:57)at org.h2.engine.Engine.openSession(Engine.java:164)at org.h2.engine.Engine.createSessionAndValidate(Engine.java:142)at org.h2.engine.Engine.createSession(Engine.java:125)at org.h2.engine.Engine.createSession(Engine.java:27)at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:331)at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:107)at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:91)at org.h2.Driver.connect(Driver.java:74)at org.h2.jdbcx.JdbcDataSource.getJdbcConnection(JdbcDataSource.java:191)at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:354)at org.h2.jdbcx.JdbcDataSource.getPooledConnection(JdbcDataSource.java:386)at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(JdbcConnectionPool.java:228)at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:200)at com.smartbear.ready.db.init.liquibase.LiquibaseSchemaVersionChecker.getLiquibase(LiquibaseSchemaVersionChecker.java:112)at com.smartbear.ready.db.init.liquibase.LiquibaseSchemaVersionChecker.checkDbState(LiquibaseSchemaVersionChecker.java:80)at com.smartbear.ready.db.init.liquibase.LiquibaseSchemaVersionChecker.checkAndUpgradeDb(LiquibaseSchemaVersionChecker.java:117)at com.smartbear.ready.db.init.liquibase.LiquibaseSchemaVersionChecker.initDb(LiquibaseSchemaVersionChecker.java:57)at com.smartbear.ready.db.init.liquibase.LiquibaseSchemaVersionChecker.access$0(LiquibaseSchemaVersionChecker.java:56)at com.smartbear.ready.db.init.liquibase.LiquibaseSchemaVersionChecker$1.run(LiquibaseSchemaVersionChecker.java:50)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)at java.lang.Thread.run(Thread.java:748)21:38:46,218 INFO [DefaultSoapUICore] Adding actions from [/Volumes/DEVELOPMENT/tools/ReadyAPI-2.0.2/bin/actions/demo-actions.xml]21:38:50,890 INFO [DefaultSoapUICore] Defaulting to native L&F for Mac OS X21:39:04,447 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for SoapUI NG21:39:04,449 DEBUG [LicenseManagerServiceImpl] No license found for SoapUI NG21:39:09,451 DEBUG [LicenseManagerServiceImpl] License host for SoapUI NG: POSEIDON.LOCAL21:39:24,556 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for SoapUI NG21:39:24,556 DEBUG [LicenseManagerServiceImpl] No license found for SoapUI NG21:39:29,559 DEBUG [LicenseManagerServiceImpl] License host for SoapUI NG: POSEIDON.LOCAL21:39:54,583 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for Secure21:39:54,584 DEBUG [LicenseManagerServiceImpl] No license found for Secure21:39:59,587 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for LoadUI NG21:39:59,588 DEBUG [LicenseManagerServiceImpl] No license found for LoadUI NG21:40:04,586 DEBUG [LicenseManagerServiceImpl] License host for Secure: POSEIDON.LOCAL21:40:14,593 DEBUG [LicenseManagerServiceImpl] License host for LoadUI NG: POSEIDON.LOCAL21:40:24,641 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for ServiceV21:40:24,641 DEBUG [LicenseManagerServiceImpl] No license found for ServiceVException in thread "Splash screen renderer" java.lang.IllegalStateException: no splash screen availableat java.awt.SplashScreen.checkVisible(SplashScreen.java:197)at java.awt.SplashScreen.update(SplashScreen.java:324)at com.eviware.soapui.support.log.SplashAppender$1.run(SplashAppender.java:76)at java.lang.Thread.run(Thread.java:748)21:40:29,645 DEBUG [LicenseManagerServiceImpl] License host for ServiceV: POSEIDON.LOCAL21:40:38,495 INFO [ReadyApiInitializer] Initializing modules21:40:43,484 INFO [ModuleLoader] Module [Secure] added 4 actionGroups, 8 actions, 2 factories, 0 listeners, 0 toolbar components.21:40:43,494 INFO [ModuleLoader] Module [LoadUI NG] added 5 actionGroups, 12 actions, 3 factories, 0 listeners, 0 toolbar components.21:40:44,187 INFO [ModuleLoader] Module [ServiceV] added 16 actionGroups, 25 actions, 15 factories, 0 listeners, 0 toolbar components.21:40:44,231 INFO [ModuleLoader] Module [SoapUI NG] added 6 actionGroups, 6 actions, 1 factories, 0 listeners, 0 toolbar components.21:40:44,335 INFO [ModuleLoader] Module [Projects] added 11 actionGroups, 1 actions, 1 factories, 0 listeners, 0 toolbar components.21:40:44,666 INFO [ModuleLoader] Module [Dashboard] added 0 actionGroups, 0 actions, 0 factories, 0 listeners, 0 toolbar components.21:40:44,939 INFO [ModuleLoader] Module [SoapUIProUserInterfaceModule] added 4 actionGroups, 172 actions, 3 factories, 0 listeners, 0 toolbar components.21:40:44,939 INFO [ReadyApiInitializer] All modules loaded21:40:45,458 INFO [ModuleLoader] Module [ReadyApiUI] added 6 actionGroups, 4 actions, 0 factories, 0 listeners, 0 toolbar components.21:40:45,458 INFO [ReadyApiInitializer] Loading took 6963 ms21:40:45,462 INFO [DbLimitsUpdater] Setting maximum test history db size to 2147483648 MB21:40:45,477 INFO [DiscoveryBroadcaster] No valid license for DiscoveryBroadcaster found. Not started.21:40:45,774 INFO [BaseExecutionManager] Initialized base directory to keep executions to /Users/mdantasf/.readyapi/loadui/results21:40:46,030 INFO [SwingReadyApiUi] Starting Ready! API 2.0.221:41:27,045 DEBUG [LicenseManagerAction] Opening License Manager21:41:28,413 DEBUG [LicenseManagerView] License server accessible21:41:40,442 DEBUG [LicenseManagerView] Opening add new license dialog21:41:40,607 DEBUG [AddNewLicenseView] Server available - license method set to License code, activation method to ONLINE21:44:20,030 DEBUG [AddNewLicenseView] License installation view: Next button clicked21:44:20,073 INFO [LicenseFileUtil] Trying to install license(s) for [SoapUING] from file /Volumes/DEVELOPMENT/tools/ReadyAPI-2.0.2/soapui-license/soapui/trial-license.zip21:44:35,242 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for SoapUI NG21:44:35,242 DEBUG [LicenseManagerServiceImpl] No license found for SoapUI NG21:44:40,247 DEBUG [LicenseManagerServiceImpl] License host for SoapUI NG: POSEIDON.LOCAL21:44:55,345 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for SoapUI NG21:44:55,359 DEBUG [LicenseManagerServiceImpl] Valid license file found: /Users/mdantasf/.soapui/soapui.key, last modified: Mon Jul 17 21:44:20 BRT 201721:45:00,349 DEBUG [LicenseManagerServiceImpl] License host for SoapUI NG: POSEIDON.LOCAL 2ff7e9595c
Comments