cancel
Showing results for 
Search instead for 
Did you mean: 

Error while converting java to class

kavi
Champ in-the-making
Champ in-the-making
Hi ,

I want to write my own class for java service task.
So i wrote a .java in "activiti\workspace\activiti-engine-examples\src\main\java\org\activiti\examples\bpmn\servicetask"
But when i tried to convert it into class i get errors like
package org.activiti.engine.delegate.Expression not found. I am importing following
import org.activiti.engine.delegate.Expression;
import org.activiti.engine.delegate.JavaDelegate;
import org.activiti.engine.delegate.DelegateExecution;
import org.apache.commons.mail.*;

What am i missing?
Where are the classes imported present?

Thanks,
kavi
3 REPLIES 3

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Without wanting to be offensive, I think you need to learn a little java basics first.

'converting' java to class files is called compiling

kavi
Champ in-the-making
Champ in-the-making
Hi,

sry… it is compiling.

Can u tel me how to do it using eclipse.
I created a java class in eclipse.
But when i debug im getting error as he Web server could not be started. Possible cause: another server is already running on http://192.168.1.45:8082
Exception in thread "main" org.h2.jdbc.JdbcSQLException: Exception opening port "8082" (port may be in use), cause: "java.net.BindException: Address already in use: JVM_Bind" [90061-132]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:316)
at org.h2.message.DbException.get(DbException.java:156)
at org.h2.util.NetUtils.createServerSocketTry(NetUtils.java:175)
at org.h2.util.NetUtils.createServerSocket(NetUtils.java:141)
at org.h2.server.web.WebServer.start(WebServer.java:271)
at org.h2.tools.Server.start(Server.java:330)
at org.h2.tools.Server.runTool(Server.java:199)
at org.h2.tools.Server.main(Server.java:106)
Caused by: java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at org.h2.util.NetUtils.createServerSocketTry(NetUtils.java:171)
… 5 more

What am i missing?

Thanks,
kavi

jbarrez
Star Contributor
Star Contributor
There is already some server running on that port.