Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!

Chris Bohannon

Greenhorn
+ Follow
since Jul 28, 2009
Chris likes ...
IntelliJ IDE Java
Texas
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Chris Bohannon

Fixed with this this:

dpkg-reconfigure dash

-Chris
6 years ago
Hello,

I'm not sure if this is the correct forum but here goes. I have installed Griffon on my Mint 13 - XFCE virtual machine. I use the following method:

sudo apt-add-repository ppa:groovy-dev/griffon
sudo apt-get update
sudo apt-get install griffon-1.0.2

This seemed to work fine but when I use griffon --version I receive:

/usr/bin/griffon: 144: /usr/bin/startGriffon: [[: not found

------------------------------------------------------------
Griffon 1.0.2
------------------------------------------------------------

Build: 16-Aug-2012 10:36 PM
Groovy: 1.8.6
Ant: 1.8.2
Slf4j: 1.6.4
Spring: 3.1.2.RELEASE
JVM: 1.7.0_07 (Oracle Corporation 23.3-b01)
OS: Linux 3.2.0-23-generic i386

I'm not sure what the 144 error is coming from. I looked at the startGriffon file and line 144 is this:

if [[ $JAVA_HOME =~ $regex ]]; then

Am I missing something? My java home is set...any help would be great.

Thanks!
6 years ago
Thank you for the resolution and link!
6 years ago
Hello,

I have created a maven project on Ubuntu 12.04 and imported it using IntelliJ. I am using Java 1.7 and Maven 3.0.4. Java 1.7 supports using a switch case with a string. Now when I first tried to compile my maven project through the IDE I received an error stating that strings are not supported in a switch...use an if/else instead. i have edited my pom with this:

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>

That solves the compile error and I can move forward. My question is this, how do I edit the version from 2.3.2 to 3.0.4 which is what I have installed. When I change the version I get an error stating 3.0.4 plugin can't be found. Any help would be great.

Thanks!
6 years ago
Never mind. I edited the bash.bashrc file and setup my JAVA_HOME.
6 years ago
Hello,

I am pretty new to Linux and I have been trying to setup Tomcat. I used the instructions here:

http://www.howtogeek.com/howto/linux...t-6-on-ubuntu/

and changed them to fit Tomcat 7. I have edited my .bashrc file with the following:

export JAVA_HOME=/usr/bin/java

Now this did work once but when I rebooted and go to localhost:8080 after running ./startup.sh the Tomcat startup page does not appear. This is the output from ./startup.sh:

Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/bin/java
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar

And this is the output from running ./shutdown.sh:

Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/bin/java
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
./catalina.sh: 1: eval: /usr/bin/java/bin/java: not found

I am not sure what I am doing wrong. When I do a which java I get the following: /usr/local/tomcat/bin$. Can anyone point me in the right direction? I'm not trying to auto start Tomcat or anything complicated but I just can't seem to get this to run after editing .bashrc and rebooting. I am editing the wrong file?

Thanks!
6 years ago
Hello,

I am running Windows Vista Home Premium. I have downloaded and installed Groovy version 1.6.3. At the command line I enter groovysh and recieve the following error:


error: dynamic library C:\Program Files\Java\jdk1.6.0_13\jre\bin\server\jvm.dll exists but could not be loaded!
error (win code 193): (null)
error: could not find a client or server jvm under C:\Program Files\Java\jdk1.6.0_13
please check that it is a valid jdk / jre containing the desired type of jvm


Groovy seemed to install fine, however, I can't seem to get this to run. The jvm.dll does exist in the correct directory. I have also installed a 32 bit jdk as well. I have tried to change the path using groovy --javahome and the 32 bit directory but that returns the same error. Is there a way I can get this to work on a 64 bit system?

Thanks!
9 years ago
Hello,

I have an Ant related question. According to the Ant manual:

Note that .bat files cannot in general by executed directly. One normally needs to execute the command shell executable cmd using the /c switch.



Here is a code snippet:


This seems to work just fine. I am executing a .bat file directly from the exec task. Now the manual states "general" usage, but I am wondering if I should use the recommend method or is it safe to do what I am doing?

Thanks!
9 years ago