1

Why i can not import javax.transaction.UserTransaction? In official doc is indicated that there is UserTransaction interface inside the javax.transaction package, however i cannot import it because in fact it does not exist. What i am doing wrong?

Ajay George
  • 11,759
  • 1
  • 40
  • 48
Oleksandr Papchenko
  • 2,071
  • 21
  • 30
  • It does exist and that's a fact. If you insist on it not existing, there's no way we can help you. It was even back in the days of Java 1.4 http://docs.oracle.com/javaee/1.4/api/javax/transaction/UserTransaction.html EDIT: You do realize that it belongs to Java EE and not Java SE, right? – Kayaman May 07 '14 at 18:00

1 Answers1

1

That class is not found in the default JRE/JDK library (here's a discussion about java vs javax package).

You need to add it in your classpath. Here are some jars that are including it.

Community
  • 1
  • 1
dimitrisli
  • 20,895
  • 12
  • 59
  • 63