Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

SPSS Java Plug in version 21 does NOT work

0700000U1W gravatar image
Question by Tommy_suzuki  (1) | Jul 02, 2013 at 01:21 PM spssstatisticsextensibilityjava

Hello All,

I just downloaded a trial version of spss version 21. In this version, spss offers java plugin.

I tried to followed instruction from the spss plug in document, and I tried to run a simple spss jave plugin program but it did not work.

It gave me the error message : "

com.ibm.statistics.plugin.StatsException: IBM SPSS Statistics backend is not ready.

at com.ibm.statistics.plugin.XDAPI.start(Unknown Source)

at com.ibm.statistics.plugin.StatsUtil.start(Unknown Source)"

I don't know why it gave me this error because I followed the spss plugin manual and I had spssjavaplugin.jar in my class path.

My simple program that I copied from the spss plugin document as

importcom.ibm.statistics.plugin.*;

public class test {public static voidmain(String[] args) {

try{

StatsUtil.start();

String[] command={"OMS",

"/DESTINATION FORMAT=HTML OUTFILE='/output/demo.html'.",

"DATA LIST FREE /salary (F).",

"BEGIN DATA",

"21450",

"30000",

"57000",

"END DATA.",

"DESCRIPTIVES salary.",

"OMSEND."};

StatsUtil.submit(command);

StatsUtil.stop();

} catch (StatsException e) {

e.printStackTrace();

}

}

}

Please advice me on what I did wrong or point me to someone who could help me

Thanks so much in advance.

Bob

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

6 answers

  • Sort: 
270002VCWN gravatar image
Accepted answer

Answer by JonPeck (4671) | Jul 03, 2013 at 03:23 PM

Do not put the html file in the Statistics installation directory. In many cases users will not have write permission to that area. You could create your own folder or use the SPSS temporary directory or, on Windows, the APPDATA area. The latter two locations will always be writeable.

As for Hadoop, Statistics does not currently have support for Hadoop, but the IBM Analytic Server and IBM SPSS Modeler 15.0.2 releases bring Hadoop support to Modeler. These were released just last month.

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
2700032HKK gravatar image

Answer by RichCohen (26) | Jul 02, 2013 at 06:52 PM

Is that the full error message? If not, then please provide the full message.

Also, the Java Plug-in assumes that spssjavaplugin.jar is located in the SPSS Statistics installation directory. The Plug-in will not work if you move the jar file.

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
0700000U1W gravatar image

Answer by Tommy_suzuki (1) | Jul 03, 2013 at 02:25 PM

Thanks so much Rick !! Your help made a big difference.

It works perfectly where it's supposed to be in the installation directory.

Since it is running well , i would like to ask a question if you don't mind suggesting me where i suppose to put the output/demo.html file refering to this

"/DESTINATION FORMAT=HTML OUTFILE='/output/demo.html'." ?

Would you think if it works best if i put it in the SPSS installation directory and I need to refer to it as an absolute path from the code;

or would you recommend if i put it in a folder i create from the Java project file ?

Also , Since i am learning Hadoop, do you know if there is a SPSS plugin for Hadoop or any thing similar in that nature?

Thanks again for all of your helps,

Bob

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
27000115VB gravatar image

Answer by MihaiSchoen (0) | Jul 08, 2013 at 01:02 PM

Hello

I have discovered this post from last week and I try to write to you as I have the problem in the oppostite way and I am blocked since a few weeks concerning this issue.

Trying to call the JAVA class from within SPSS doesn't give me any answer, it blocks showing that the request is beeing executed, but no answer comes.

I followed the tutorial from

http://pic.dhe.ibm.com/infocenter/spssstat/v21r0m0/index.jsp?topic=%2Fcom.ibm.spss.statistics.java.help%2Fprogrammability_java_guide_start_extcmds.htm

but unfortunately I don't get it run. Have you already got to work SPSS with Java this way?

Many thanks in advance

Mihai Schoen

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270007D3RV gravatar image

Answer by zngab (0) | Jun 30, 2014 at 02:12 PM

Hey Jon

Is there any places in Canada offering the training of using Java Plug-in for SPSS? Thank you in advance for your information.

Gabriel

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270002VCWN gravatar image

Answer by JonPeck (4671) | Jun 30, 2014 at 03:25 PM

I am not aware of any training available on this. If you already know Java, you are most of the way there. If you know Python, you can see from the Programming and Data Management book that the apis and usage for Python programmability are very similar, although the Python apis are broader.

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

52 people are following this question.

Answers

Answers & comments

Related questions

Suppress console output when using Java API's 0 Answers

When starting from right after split change, DataUtil fetches empty 0 Answers

SPSS Statistics Java and JRE 7 3 Answers

Update Java 3 Answers

How to do alignment for label text 0 Answers

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges