Posts

Showing posts with the label intellij-idea

Not able to start IntelliJ version 2017.1

Image
Not able to start IntelliJ version 2017.1 I am trying to start the IntelliJ but it failed and showing following error message. I have already defined JAVA_HOME in system variable. I also tried to update JAVA_HOME in user environment variable. I am expecting the user defined will overwritten system one. However, IntelliJ still looking for system defined variable, and tried create JVM from there. JAVA_HOME JAVA_HOME This issue happened when my admin right has been invoked. It used to work before. Is there any way I could run the IntelliJ without the admin right. It seems that you need 32-bit JDK. Is your JDK 64-bit? – Jaycee Jul 3 at 3:28 2 Answers 2 you can try setting : IDEA_JDK environment variable IDEA_JDK IDEA_JDK={your_jdk_path} Example : IDEA_...

Spring Boot Application failed to start with classpath: []

Spring Boot Application failed to start with classpath: I generated a Spring Boot application with jHipster, added some code from my previous project (non-jhipster project) and tried to run it using IDEA. First I got an error message similar to this, saying "Command line is too long.." (I am running Windows 10 x64). I clicked enable, but then I got an error like this.: "C:Program FilesJavajdk1.8.0_144binjava" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:51351,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=51350 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dfile.encoding=UTF-8 -classpath C:UsersUserAppDataLocalTempclasspath.jar com.test.pc.TestPartsComposerApp Connected to the target VM, address: '127.0.0.1:51351', transport...

JUnit Easymock - spurious results invoking unit test method as a) method b) within class c) as mvn build

JUnit Easymock - spurious results invoking unit test method as a) method b) within class c) as mvn build I have a unit test and contained within this unit test is my problem method: @Test(expected = CheckoutException.class) public void performCheckout_CheckoutException() throws Exception { // setup test data Order order = new OrderImpl(); OMSOrder omsOrder = new OMSOrderImpl(); Order omsOrderProxy = OMSOrderProxy.proxify(order, omsOrder, Logger.getRootLogger()); omsOrderProxy.setId(1L); FulfillmentOrder fulfillmentOrder = new FulfillmentOrderImpl(); FulfillmentGroup fulfillmentGroup = new FulfillmentGroupImpl(); fulfillmentGroup.setType(FulfillmentType.DIGITAL); fulfillmentOrder.setFulfillmentGroup(fulfillmentGroup); ((OMSOrder)omsOrderProxy).getAllFulfillmentOrders().add(fulfillmentOrder); ProcessContext<CheckoutSeed> context = new DefaultProcessContextImpl<>(); // create the expected flow expect(orderService.save(anyObje...

Intelij Windows 10 SQLITE Access denied

Intelij Windows 10 SQLITE Access denied This is a Java Project which connect to a sqlite database. I didn't really know where is the problem, I am making a login app to my manager here is my code : package dbUtil; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class dbConnection { public static final String USERNAME = "dbuser"; public static final String PASSWORD = "dbpassword"; public static final String CONN = "jdbc:mysql:\localhost/login"; public static final String SQCONN = "jdbc:sqlite:\dbname.sqlite"; public static Connection getConnection() throws SQLException{ try{ Class.forName("org.sqlite.JDBC"); return DriverManager.getConnection(SQCONN); }catch (ClassNotFoundException e){ e.printStackTrace(); } return null; } } And here is the error i found, i didn't know what exactly is happening: java.sql.SQLException: opening db: 'dbname.s...