powered by Jive Software

Compiling Spark for Dummies


#1

Hey,

So, essentially this document is strictly about compiling Spark, not downloading SVN or building Install4j installers. Okay, so, this document assumes you have Netbeans open (Netbeans is a great IDE once you get around it). To start there’s no need to have any folders or anything just Netbeans open.

Simply follow the screenshots and good luck!

Firstly, in Neatbeans go to File -> New Project and select the “Java Project with Existing Sources” option.

Click next and enter Spark as your project name, along with where you want to make it (the end folder e.g. /Spark must not exist at this stage, just the folder that will contain it)

Now goto where you have set for this Spark folder to be created (leave netbeans open in the background with the menu still there), in this example its: W:\Programming, in there now create a folder called Spark for this example and place your SVN files here

So, now you need to copy the XML file called “build.xml” from the /build folder into the / folder (essentially the Spark folder you just placed the SVN files, open the new copied “build.xml” into something like notepad and delete the highlighted text in the screenshot, then save it and close it.

So, lets go back to Netbeans, you now should be on the “3. Existing Sources” section, if you’re still on “2. name and location” click Next to get to part 3, on part 3 you need to now click “Add Folder” and select the /src folder within the spark folder that you made, once that’s done like below, click finish

Now at the left side of Netbeans there should be a coffee mug with the text Spark, that is our newly created project, right click the text and then click on properties like below

Once the new menu has appared, on the left hand side of that menu click on the text “Libraries” then then click “Add JAR/Folder” which you should add “/build/lib” which can be found within your Spark folder. If it looks like below then you’ve done is successfully and need to click “Ok”

So, that’s nearly it, what’s left is to build it, right click on the Spark text next to the coffee mug again and this time select “Clean and Build Project”

Once that’s completed, goto /target/build/bin/startup.bat which should start Spark and that’s it done!

Thanks for reading! and have fun!


How to make branded Spark distribution (documentation outdated)
#2

THANK YOU FOR POSTING THIS THREAD…

it really helps us


#3

yeah, i have build it


#4

Excellent, good to see some people have found this document useful!


#5

Cool, I managed to compile it, How can I create an exe (with free software) and an installer.


#6

Is this process the same for the linux debian build?


#7

it should be, as Spark is platform independent


#8

Correction (for newbies like me):

you need to add all jars, not the folder containing it.

(in the snapshot, the article shows only the folder added as lib, which mislead newbies)


#9

Hmm, even after I added the jars, it didn’t change…

I am receiving following compiling errors:

Compiling 56 source files to C:\Documents and Settings\oozturk7\My Documents\NetBeansProjects\spark\target\classes

C:\Documents and Settings\oozturk7\My Documents\NetBeansProjects\spark\src\java\org\jivesoftware\sparkimpl\plugin\pri vacy\PrivacyManager.java:131: cannot find symbol

symbol : variable BLOCK_CONTACT_16x16

location: class org.jivesoftware.resource.SparkRes

contactItem.setSideIcon( SparkRes.getImageIcon( SparkRes.BLOCK_CONTACT_16x16 ) );

C:\Documents and Settings\oozturk7\My Documents\NetBeansProjects\spark\src\java\org\jivesoftware\sparkimpl\plugin\pri vacy\PrivacyManager.java:137: cannot find symbol

symbol : variable BLOCK_CONTACT_16x16

location: class org.jivesoftware.resource.SparkRes

offlineItem.setSideIcon( SparkRes.getImageIcon( SparkRes.BLOCK_CONTACT_16x16 ) );

C:\Documents and Settings\oozturk7\My Documents\NetBeansProjects\spark\src\java\org\jivesoftware\sparkimpl\plugin\pri vacy\PrivacyPlugin.java:113: cannot find symbol

symbol : variable UNBLOCK_CONTACT_16x16

location: class org.jivesoftware.resource.SparkRes

blockMenu = new JMenuItem(Res.getString(“menuitem.unblock.contact”), SparkRes.getImageIcon(SparkRes.UNBLOCK_CONTACT_16x16));

C:\Documents and Settings\oozturk7\My Documents\NetBeansProjects\spark\src\java\org\jivesoftware\sparkimpl\plugin\pri vacy\PrivacyPlugin.java:128: cannot find symbol

symbol : variable BLOCK_CONTACT_16x16

location: class org.jivesoftware.resource.SparkRes

blockMenu = new JMenuItem(Res.getString(“menuitem.block.contact”), SparkRes.getImageIcon(SparkRes.BLOCK_CONTACT_16x16));

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

4 errors

C:\Documents and Settings\oozturk7\My Documents\NetBeansProjects\spark\build.xml:236: Compile failed; see the compiler error output for details.

BUILD FAILED (total time: 18 seconds)


#10

Nice, all working fine. Though, how to start build without cmd console?


#11

You can’t. It doesn’t build executable (exe), so you have to use cmd to start those jar files it builds.


#12

I am doing this exactly word for word but with sparks 2.5.8 svn and this is what I am getting :

init:

deps-clean:

Deleting directory D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\build

clean:

init:

deps-jar:

Created dir: D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\build\classes

Created dir: D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\build\empty

Compiling 454 source files to D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\build\classes

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\plugins\sip\src\java\net\java\sipmack\medi a\AudioMediaSession.java:26: warning: unmappable character for encoding UTF-8

  • For better NAT Traversal support this implementation don?t support only receive or only transmit.

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\plugins\sip\src\java\net\java\sipmack\medi a\TransportCandidate.java:139: warning: unmappable character for encoding UTF-8

  • Get the jingle?s sessionId that is using this candidate

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\plugins\sip\src\java\net\java\sipmack\medi a\TransportCandidate.java:148: warning: unmappable character for encoding UTF-8

  • Set the jingle?s sessionId that is using this candidate

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\AccountCreationWizar d.java:14: package org.jivesoftware.smack does not exist

import org.jivesoftware.smack.AccountManager;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\AccountCreationWizar d.java:15: package org.jivesoftware.smack does not exist

import org.jivesoftware.smack.ConnectionConfiguration;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\AccountCreationWizar d.java:16: package org.jivesoftware.smack does not exist

import org.jivesoftware.smack.XMPPConnection;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\AccountCreationWizar d.java:17: package org.jivesoftware.smack does not exist

import org.jivesoftware.smack.XMPPException;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\AccountCreationWizar d.java:18: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.XMPPError;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\AccountCreationWizar d.java:19: package org.jivesoftware.smack.util does not exist

import org.jivesoftware.smack.util.StringUtils;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\AccountCreationWizar d.java:68: cannot find symbol

symbol : class XMPPConnection

location: class org.jivesoftware.AccountCreationWizard

private XMPPConnection connection = null;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\AccountCreationWizar d.java:308: cannot find symbol

symbol : class XMPPConnection

location: class org.jivesoftware.AccountCreationWizard

private XMPPConnection getConnection() throws XMPPException {

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\AccountCreationWizar d.java:308: cannot find symbol

symbol : class XMPPException

location: class org.jivesoftware.AccountCreationWizard

private XMPPConnection getConnection() throws XMPPException {

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\LoginDialog.java:13: package org.dom4j does not exist

import org.dom4j.Document;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\LoginDialog.java:14: package org.dom4j does not exist

import org.dom4j.DocumentException;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\LoginDialog.java:15: package org.dom4j does not exist

import org.dom4j.Element;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\LoginDialog.java:16: package org.dom4j.io does not exist

import org.dom4j.io.SAXReader;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\LoginDialog.java:20: package org.jivesoftware.smack does not exist

import org.jivesoftware.smack.ConnectionConfiguration;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\LoginDialog.java:21: package org.jivesoftware.smack does not exist

import org.jivesoftware.smack.SmackConfiguration;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\LoginDialog.java:22: package org.jivesoftware.smack does not exist

import org.jivesoftware.smack.XMPPConnection;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\LoginDialog.java:23: package org.jivesoftware.smack does not exist

import org.jivesoftware.smack.XMPPException;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\LoginDialog.java:24: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.XMPPError;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\LoginDialog.java:25: package org.jivesoftware.smack.util does not exist

import org.jivesoftware.smack.util.StringUtils;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\LoginDialog.java:222 : cannot find symbol

symbol : class XMPPConnection

location: class org.jivesoftware.LoginDialog.LoginPanel

private XMPPConnection connection = null;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\MainWindow.java:16: package org.jivesoftware.smack does not exist

import org.jivesoftware.smack.XMPPConnection;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\MainWindow.java:17: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.Presence;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\Spark.java:13: package de.javasoft.plaf.synthetica does not exist

import de.javasoft.plaf.synthetica.SyntheticaBlueMoonLookAndFeel;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\Spark.java:14: package de.javasoft.plaf.synthetica does not exist

import de.javasoft.plaf.synthetica.SyntheticaLookAndFeel;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\SparkStartupListener .java:21: package com.install4j.api.launcher.StartupNotification does not exist

public class SparkStartupListener implements com.install4j.api.launcher.StartupNotification.Listener {

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\launcher\Installer.j ava:14: package com.install4j.api.actions does not exist

import com.install4j.api.actions.InstallAction;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\launcher\Installer.j ava:15: package com.install4j.api.context does not exist

import com.install4j.api.context.Context;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\launcher\Installer.j ava:16: package com.install4j.api.context does not exist

import com.install4j.api.context.InstallerContext;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\launcher\Installer.j ava:17: package com.install4j.api.context does not exist

import com.install4j.api.context.UserCanceledException;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\launcher\Installer.j ava:18: package com.install4j.api.windows does not exist

import com.install4j.api.windows.RegistryRoot;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\launcher\Installer.j ava:19: package com.install4j.api.windows does not exist

import com.install4j.api.windows.WinRegistry;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\launcher\Installer.j ava:29: cannot find symbol

symbol: class InstallAction

public class Installer implements InstallAction {

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\launcher\Installer.j ava:31: cannot find symbol

symbol : class InstallerContext

location: class org.jivesoftware.launcher.Installer

private InstallerContext context;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\launcher\Installer.j ava:38: cannot find symbol

symbol : class Context

location: class org.jivesoftware.launcher.Installer

public void init(Context context) {

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\launcher\Installer.j ava:41: cannot find symbol

symbol : class InstallerContext

location: class org.jivesoftware.launcher.Installer

public boolean install(InstallerContext installerContext) throws UserCanceledException {

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\launcher\Installer.j ava:41: cannot find symbol

symbol : class UserCanceledException

location: class org.jivesoftware.launcher.Installer

public boolean install(InstallerContext installerContext) throws UserCanceledException {

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\launcher\Installer.j ava:74: cannot find symbol

symbol : class InstallerContext

location: class org.jivesoftware.launcher.Installer

public void rollback(InstallerContext installerContext) {

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\sparkimpl\plugin\emo ticons\EmoticonManager.java:13: package org.dom4j does not exist

import org.dom4j.Document;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\sparkimpl\plugin\emo ticons\EmoticonManager.java:14: package org.dom4j does not exist

import org.dom4j.DocumentException;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\sparkimpl\plugin\emo ticons\EmoticonManager.java:15: package org.dom4j does not exist

import org.dom4j.Element;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\sparkimpl\plugin\emo ticons\EmoticonManager.java:16: package org.dom4j does not exist

import org.dom4j.Node;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\sparkimpl\plugin\emo ticons\EmoticonManager.java:17: package org.dom4j.io does not exist

import org.dom4j.io.SAXReader;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ChatManager.ja va:14: package org.jivesoftware.smack does not exist

import org.jivesoftware.smack.XMPPException;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ChatManager.ja va:15: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.Message;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ChatManager.ja va:16: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.Presence;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ChatManager.ja va:17: package org.jivesoftware.smack.util does not exist

import org.jivesoftware.smack.util.StringUtils;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ChatManager.ja va:18: package org.jivesoftware.smackx does not exist

import org.jivesoftware.smackx.Form;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ChatManager.ja va:19: package org.jivesoftware.smackx does not exist

import org.jivesoftware.smackx.MessageEventManager;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ChatManager.ja va:20: package org.jivesoftware.smackx does not exist

import org.jivesoftware.smackx.MessageEventNotificationListener;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ChatManager.ja va:21: package org.jivesoftware.smackx does not exist

import org.jivesoftware.smackx.MessageEventRequestListener;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ChatManager.ja va:22: package org.jivesoftware.smackx.muc does not exist

import org.jivesoftware.smackx.muc.MultiUserChat;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ChatManager.ja va:65: cannot find symbol

symbol: class MessageEventNotificationListener

public class ChatManager implements MessageEventNotificationListener {

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\MessageFilt er.java:13: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.Message;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\MessageList ener.java:13: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.Message;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\conferences \RoomInvitationListener.java:13: package org.jivesoftware.smack does not exist

import org.jivesoftware.smack.XMPPConnection;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\conferences \RoomInvitationListener.java:14: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.Message;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\TranscriptW indowInterceptor.java:11: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.Message;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\SparkTabHan dler.java:16: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.Presence;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\ChatContain er.java:17: package org.jivesoftware.smack does not exist

import org.jivesoftware.smack.PacketListener;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\ChatContain er.java:18: package org.jivesoftware.smack.filter does not exist

import org.jivesoftware.smack.filter.AndFilter;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\ChatContain er.java:19: package org.jivesoftware.smack.filter does not exist

import org.jivesoftware.smack.filter.FromContainsFilter;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\ChatContain er.java:20: package org.jivesoftware.smack.filter does not exist

import org.jivesoftware.smack.filter.PacketTypeFilter;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\ChatContain er.java:21: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.Message;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\ChatContain er.java:22: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.Packet;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\ChatContain er.java:23: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.Presence;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\ChatContain er.java:24: package org.jivesoftware.smack.util does not exist

import org.jivesoftware.smack.util.StringUtils;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\ContactItem Handler.java:13: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.Presence;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\ChatRoom.ja va:15: package org.jivesoftware.smack does not exist

import org.jivesoftware.smack.ConnectionListener;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\ChatRoom.ja va:16: package org.jivesoftware.smack does not exist

import org.jivesoftware.smack.PacketListener;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\ChatRoom.ja va:17: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.Message;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\ChatRoom.ja va:18: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.Packet;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\ChatRoom.ja va:73: cannot find symbol

symbol: class PacketListener

public abstract class ChatRoom extends BackgroundPanel implements ActionListener, PacketListener, DocumentListener, ConnectionListener, FocusListener, ContextMenuListener {

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\ChatRoom.ja va:73: cannot find symbol

symbol: class ConnectionListener

public abstract class ChatRoom extends BackgroundPanel implements ActionListener, PacketListener, DocumentListener, ConnectionListener, FocusListener, ContextMenuListener {

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\rooms\Group ChatRoom.java:15: package org.jivesoftware.smack does not exist

import org.jivesoftware.smack.XMPPException;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\rooms\Group ChatRoom.java:16: package org.jivesoftware.smack.filter does not exist

import org.jivesoftware.smack.filter.AndFilter;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\rooms\Group ChatRoom.java:17: package org.jivesoftware.smack.filter does not exist

import org.jivesoftware.smack.filter.FromContainsFilter;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\rooms\Group ChatRoom.java:18: package org.jivesoftware.smack.filter does not exist

import org.jivesoftware.smack.filter.OrFilter;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\rooms\Group ChatRoom.java:19: package org.jivesoftware.smack.filter does not exist

import org.jivesoftware.smack.filter.PacketFilter;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\rooms\Group ChatRoom.java:20: package org.jivesoftware.smack.filter does not exist

import org.jivesoftware.smack.filter.PacketTypeFilter;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\rooms\Group ChatRoom.java:21: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.Message;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\rooms\Group ChatRoom.java:22: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.Packet;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\rooms\Group ChatRoom.java:23: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.Presence;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\rooms\Group ChatRoom.java:24: package org.jivesoftware.smack.util does not exist

import org.jivesoftware.smack.util.StringUtils;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\rooms\Group ChatRoom.java:25: package org.jivesoftware.smackx does not exist

import org.jivesoftware.smackx.Form;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\rooms\Group ChatRoom.java:26: package org.jivesoftware.smackx does not exist

import org.jivesoftware.smackx.MessageEventManager;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\rooms\Group ChatRoom.java:27: package org.jivesoftware.smackx does not exist

import org.jivesoftware.smackx.MessageEventNotificationListener;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\rooms\Group ChatRoom.java:28: package org.jivesoftware.smackx.muc does not exist

import org.jivesoftware.smackx.muc.DefaultParticipantStatusListener;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\rooms\Group ChatRoom.java:29: package org.jivesoftware.smackx.muc does not exist

import org.jivesoftware.smackx.muc.DefaultUserStatusListener;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\rooms\Group ChatRoom.java:30: package org.jivesoftware.smackx.muc does not exist

import org.jivesoftware.smackx.muc.MultiUserChat;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\rooms\Group ChatRoom.java:31: package org.jivesoftware.smackx.muc does not exist

import org.jivesoftware.smackx.muc.SubjectUpdatedListener;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\rooms\Group ChatRoom.java:32: package org.jivesoftware.smackx.packet does not exist

import org.jivesoftware.smackx.packet.DelayInformation;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\rooms\Group ChatRoom.java:33: package org.jivesoftware.smackx.packet does not exist

import org.jivesoftware.smackx.packet.MUCUser;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\rooms\Group ChatRoom.java:34: package org.jivesoftware.smackx.packet.MUCUser does not exist

import org.jivesoftware.smackx.packet.MUCUser.Destroy;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ChatManager.ja va:396: cannot find symbol

symbol : class Message

location: class org.jivesoftware.spark.ChatManager

public void fireGlobalMessageReceievedListeners(ChatRoom chatRoom, Message message) {

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ChatManager.ja va:408: cannot find symbol

symbol : class Message

location: class org.jivesoftware.spark.ChatManager

public void fireGlobalMessageSentListeners(ChatRoom chatRoom, Message message) {

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ChatManager.ja va:420: cannot find symbol

symbol : class Message

location: class org.jivesoftware.spark.ChatManager

public void filterIncomingMessage(ChatRoom room, Message message) {

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ChatManager.ja va:443: cannot find symbol

symbol : class Message

location: class org.jivesoftware.spark.ChatManager

public void filterOutgoingMessage(ChatRoom room, Message message) {

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\ContactItem .java:15: package org.jivesoftware.smack does not exist

import org.jivesoftware.smack.RosterEntry;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\ContactItem .java:16: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.DefaultPacketExtension;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\ui\ContactItem .java:17: package org.jivesoftware.smack.packet does not exist

import org.jivesoftware.smack.packet.PacketExtension;

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\util\GraphicUt ils.java:624: warning: sun.awt.shell.ShellFolder is Sun proprietary API and may be removed in a future release

sun.awt.shell.ShellFolder sf = sun.awt.shell.ShellFolder.getShellFolder(file);

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\util\GraphicUt ils.java:624: warning: sun.awt.shell.ShellFolder is Sun proprietary API and may be removed in a future release

sun.awt.shell.ShellFolder sf = sun.awt.shell.ShellFolder.getShellFolder(file);

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\util\GraphicUt ils.java:644: warning: sun.awt.shell.ShellFolder is Sun proprietary API and may be removed in a future release

sun.awt.shell.ShellFolder sf = sun.awt.shell.ShellFolder.getShellFolder(file);

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\src\java\org\jivesoftware\spark\util\GraphicUt ils.java:644: warning: sun.awt.shell.ShellFolder is Sun proprietary API and may be removed in a future release

sun.awt.shell.ShellFolder sf = sun.awt.shell.ShellFolder.getShellFolder(file);

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

100 errors

7 warnings

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\nbproject\build-impl.xml:356: The following error occurred while executing this line:

D:\Documents and Settings\gerard.kirrane\My Documents\NetBeansProjects\Spark\nbproject\build-impl.xml:165: Compile failed; see the compiler error output for details.

BUILD FAILED (total time: 2 seconds)

Please help


#13

Can the new version of Spark be configured to allow a users to connect automatically by recognizing their network name on the domain without typing their password? I know about SSO but that do not work correctly and will have to be configured individually for each user. All I want to do is make Spark recognize the username on the domain when they log in and log them in on startup without any user intervention (without having to do it using SSO for each user).


#14

You have this “warning: [options] bootstrap class path not set in conjunction with -source 1.6” and on my system it says “warning: [options] bootstrap class path not set in conjunction with -source 1.5” So, maybe there are some older functions in the source which need 1.5 support. Does your build.xml has such:

Though, i’m not sure this is related. Not a coder myself or know much about Netbeans.


#15

Dear All,

i have install openfire server in my linux machine and its working properly with lan & wan

but right now i need to chage spark messenger logo to my company logo.

i had visit the forum and also read documents but still not able to understand how to chage it anybody help me for step by step how to and where i download svn

Thanks

Mohan


#16

Hi,

I have been able to compile Spark and it works. The problem is that I have many many package importation errors :

ex :

import org.lobobrowser.gui.ContentEvent;

import org.lobobrowser.gui.ContentListener;

import org.lobobrowser.gui.FramePanel;

import org.lobobrowser.main.PlatformInit;

import org.jivesoftware.smack.XMPPException;

import org.jivesoftware.smack.packet.Message;

import org.jivesoftware.smack.packet.Presence;

import org.jivesoftware.smack.util.StringUtils;

import org.jivesoftware.smackx.Form;

My project if full of exclamation marks because of that, what can I do ?

Thank you very much,

Regards


#17

Well, i also see lots of exclamation marks in Netbeans, but that doesn’t stop Spark project from compiling.


#18

I tried compiling the latest beta (2.7.1) version with the suggested software (the compile was done with Netbeans IDE 7.2.1) and followed all the instructions, however the compile failed showing that several parse issues.

‘main’ at exception breakpoint java.lang.RuntimeException

The compile beings to fail at AppleTest.:28

Line 28:

import org.jivesoftware.smack.packet.Presence;

If further debug infomration in a specific area would be helpful, please request and I will provide much more detail as much as I can.


#19

Looking for assitance as well. I have the same issues described above with exclamation marks and errors throughout the code. All similar errors like the one below. Can anyone help me? Thanks!

error: package Message does not exist…