sandoche / Proof-of-Stake-Cryptocurrency-generator

🍀 Create your own Proof of Stake cryptocurrency with its own blockchain based on NXT
https://coingenerator.sh
MIT License
360 stars 437 forks source link

Windows Build Failing (JavaFX??) #48

Open baxtmann opened 3 years ago

baxtmann commented 3 years ago

Hey I am trying to build windows client on Ubuntu 18 with java 8 and I am getting this set of errors when trying to run win-compile. I used this tool a few years ago and don't remeber running into this issue. Please advise, maybe I am missing something??

baxtmann@nukacoin:~/Proof-of-Stake-Cryptocurrency-generator/NukaCoin$ sudo sh win-compile.sh src/java/nxt/Transaction.java:20: error: package org.json.simple does not exist import org.json.simple.JSONObject; ^ src/java/nxt/Attachment.java:24: error: package org.json.simple does not exist import org.json.simple.JSONArray; ^ src/java/nxt/Attachment.java:25: error: package org.json.simple does not exist import org.json.simple.JSONObject; ^ src/java/nxt/Appendix.java:24: error: package org.json.simple does not exist import org.json.simple.JSONArray; ^ src/java/nxt/Appendix.java:25: error: package org.json.simple does not exist import org.json.simple.JSONObject; ^ src/java/nxt/BlockchainProcessor.java:22: error: package org.json.simple does not exist import org.json.simple.JSONObject; ^ src/java/nxt/Block.java:19: error: package org.json.simple does not exist import org.json.simple.JSONObject; ^ src/java/nxt/db/BasicDb.java:21: error: package org.h2.jdbcx does not exist import org.h2.jdbcx.JdbcConnectionPool; ^ src/java/nxt/TransactionType.java:26: error: package org.apache.tika does not exist import org.apache.tika.Tika; ^ src/java/nxt/TransactionType.java:27: error: package org.apache.tika.mime does not exist import org.apache.tika.mime.MediaType; ^ src/java/nxt/TransactionType.java:28: error: package org.json.simple does not exist import org.json.simple.JSONObject; ^ src/java/nxt/Transaction.java:106: error: cannot find symbol JSONObject getJSONObject(); ^ symbol: class JSONObject location: interface Transaction src/java/nxt/Transaction.java:108: error: cannot find symbol JSONObject getPrunableAttachmentJSON(); ^ symbol: class JSONObject location: interface Transaction src/java/nxt/Appendix.java:40: error: cannot find symbol JSONObject getJSONObject(); ^ symbol: class JSONObject location: interface Appendix src/java/nxt/Appendix.java:177: error: cannot find symbol static boolean hasAppendix(String appendixName, JSONObject attachmentData) { ^ symbol: class JSONObject location: interface Appendix src/java/nxt/Attachment.java:1288: error: cannot find symbol ColoredCoinsDividendPayment(JSONObject attachmentData) { ^ symbol: class JSONObject location: class ColoredCoinsDividendPayment src/java/nxt/Attachment.java:1314: error: cannot find symbol void putMyJSON(JSONObject attachment) { ^ symbol: class JSONObject location: class ColoredCoinsDividendPayment src/java/nxt/Attachment.java:47: error: cannot find symbol private AbstractAttachment(JSONObject attachmentData) { ^ symbol: class JSONObject location: class AbstractAttachment src/java/nxt/Appendix.java:68: error: cannot find symbol AbstractAppendix(JSONObject attachmentData) { ^ symbol: class JSONObject location: class AbstractAppendix src/java/nxt/Appendix.java:113: error: cannot find symbol public final JSONObject getJSONObject() { ^ symbol: class JSONObject location: class AbstractAppendix src/java/nxt/Appendix.java:120: error: cannot find symbol abstract void putMyJSON(JSONObject json); ^ symbol: class JSONObject location: class AbstractAppendix src/java/nxt/peer/Peer.java:20: error: package org.json.simple does not exist import org.json.simple.JSONObject; ^ src/java/nxt/peer/Peer.java:21: error: package org.json.simple does not exist import org.json.simple.JSONStreamAware; ^ src/java/nxt/BlockchainProcessor.java:49: error: cannot find symbol void processPeerBlock(JSONObject request) throws NxtException; ^ symbol: class JSONObject location: interface BlockchainProcessor src/java/nxt/Block.java:66: error: cannot find symbol JSONObject getJSONObject(); ^ symbol: class JSONObject location: interface Block src/java/nxt/db/BasicDb.java:100: error: cannot find symbol private JdbcConnectionPool cp; ^ symbol: class JdbcConnectionPool location: class BasicDb src/java/nxt/Attachment.java:998: error: cannot find symbol ColoredCoinsAssetTransfer(JSONObject attachmentData) { ^ symbol: class JSONObject location: class ColoredCoinsAssetTransfer src/java/nxt/Attachment.java:1021: error: cannot find symbol void putMyJSON(JSONObject attachment) { ^ symbol: class JSONObject location: class ColoredCoinsAssetTransfer src/java/nxt/Attachment.java:2229: error: cannot find symbol MonetarySystemCurrencyTransfer(JSONObject attachmentData) { ^ symbol: class JSONObject location: class MonetarySystemCurrencyTransfer src/java/nxt/Attachment.java:2252: error: cannot find symbol void putMyJSON(JSONObject attachment) { ^ symbol: class JSONObject location: class MonetarySystemCurrencyTransfer src/java/nxt/TransactionType.java:206: error: cannot find symbol abstract Attachment.AbstractAttachment parseAttachment(JSONObject attachmentData) throws NxtException.NotValidException; ^ symbol: class JSONObject location: class TransactionType src/java/nxt/TransactionImpl.java:24: error: package org.json.simple does not exist import org.json.simple.JSONObject; ^ src/java/nxt/Appendix.java:185: error: cannot find symbol static Message parse(JSONObject attachmentData) { ^ symbol: class JSONObject location: class Message src/java/nxt/Appendix.java:219: error: cannot find symbol private Message(JSONObject attachmentData) { ^ symbol: class JSONObject location: class Message src/java/nxt/Appendix.java:260: error: cannot find symbol void putMyJSON(JSONObject json) { ^ symbol: class JSONObject location: class Message src/java/nxt/Appendix.java:878: error: cannot find symbol static EncryptedMessage parse(JSONObject attachmentData) { ^ symbol: class JSONObject location: class EncryptedMessage src/java/nxt/Appendix.java:892: error: cannot find symbol EncryptedMessage(JSONObject attachmentData) { ^ symbol: class JSONObject location: class EncryptedMessage src/java/nxt/Appendix.java:906: error: cannot find symbol void putMyJSON(JSONObject json) { ^ symbol: class JSONObject location: class EncryptedMessage src/java/nxt/Appendix.java:492: error: cannot find symbol private AbstractEncryptedMessage(JSONObject attachmentJSON, JSONObject encryptedMessageJSON) { ^ symbol: class JSONObject location: class AbstractEncryptedMessage src/java/nxt/Appendix.java:492: error: cannot find symbol private AbstractEncryptedMessage(JSONObject attachmentJSON, JSONObject encryptedMessageJSON) { ^ symbol: class JSONObject location: class AbstractEncryptedMessage src/java/nxt/Appendix.java:522: error: cannot find symbol void putMyJSON(JSONObject json) { ^ symbol: class JSONObject location: class AbstractEncryptedMessage src/java/nxt/Appendix.java:1000: error: cannot find symbol static EncryptToSelfMessage parse(JSONObject attachmentData) { ^ symbol: class JSONObject location: class EncryptToSelfMessage src/java/nxt/Appendix.java:1014: error: cannot find symbol EncryptToSelfMessage(JSONObject attachmentData) { ^ symbol: class JSONObject location: class EncryptToSelfMessage src/java/nxt/Appendix.java:1028: error: cannot find symbol void putMyJSON(JSONObject json) { ^ symbol: class JSONObject location: class EncryptToSelfMessage src/java/nxt/Appendix.java:1209: error: cannot find symbol static Phasing parse(JSONObject attachmentData) { ^ symbol: class JSONObject location: class Phasing src/java/nxt/PhasingParams.java:21: error: package org.json.simple does not exist import org.json.simple.JSONArray; ^ src/java/nxt/PhasingParams.java:22: error: package org.json.simple does not exist import org.json.simple.JSONObject; ^ src/java/nxt/Appendix.java:1247: error: cannot find symbol private Phasing(JSONObject attachmentData) { ^ symbol: class JSONObject location: class Phasing src/java/nxt/Appendix.java:1302: error: cannot find symbol void putMyJSON(JSONObject json) { ^ symbol: class JSONObject location: class Phasing src/java/nxt/Appendix.java:306: error: cannot find symbol static PrunablePlainMessage parse(JSONObject attachmentData) { ^ symbol: class JSONObject location: class PrunablePlainMessage src/java/nxt/Appendix.java:326: error: cannot find symbol private PrunablePlainMessage(JSONObject attachmentData) { ^ symbol: class JSONObject location: class PrunablePlainMessage src/java/nxt/Appendix.java:385: error: cannot find symbol void putMyJSON(JSONObject json) { ^ symbol: class JSONObject location: class PrunablePlainMessage src/java/nxt/Appendix.java:596: error: cannot find symbol static PrunableEncryptedMessage parse(JSONObject attachmentData) { ^ symbol: class JSONObject location: class PrunableEncryptedMessage src/java/nxt/Appendix.java:622: error: cannot find symbol private PrunableEncryptedMessage(JSONObject attachmentJSON) { ^ symbol: class JSONObject location: class PrunableEncryptedMessage src/java/nxt/Appendix.java:669: error: cannot find symbol void putMyJSON(JSONObject json) { ^ symbol: class JSONObject location: class PrunableEncryptedMessage src/java/nxt/Attachment.java:119: error: cannot find symbol final void putMyJSON(JSONObject json) { ^ symbol: class JSONObject location: class EmptyAttachment src/java/nxt/peer/Peer.java:126: error: cannot find symbol JSONObject send(JSONStreamAware request); ^ symbol: class JSONStreamAware location: interface Peer src/java/nxt/peer/Peer.java:126: error: cannot find symbol JSONObject send(JSONStreamAware request); ^ symbol: class JSONObject location: interface Peer src/java/nxt/peer/Peer.java:128: error: cannot find symbol JSONObject send(JSONStreamAware request, int maxResponseSize); ^ symbol: class JSONStreamAware location: interface Peer src/java/nxt/peer/Peer.java:128: error: cannot find symbol JSONObject send(JSONStreamAware request, int maxResponseSize); ^ symbol: class JSONObject location: interface Peer src/java/nxt/Attachment.java:1108: error: cannot find symbol private ColoredCoinsOrderPlacement(JSONObject attachmentData) { ^ symbol: class JSONObject location: class ColoredCoinsOrderPlacement src/java/nxt/Attachment.java:1134: error: cannot find symbol void putMyJSON(JSONObject attachment) { ^ symbol: class JSONObject location: class ColoredCoinsOrderPlacement src/java/nxt/Attachment.java:1159: error: cannot find symbol ColoredCoinsAskOrderPlacement(JSONObject attachmentData) { ^ symbol: class JSONObject location: class ColoredCoinsAskOrderPlacement src/java/nxt/Attachment.java:1180: error: cannot find symbol ColoredCoinsBidOrderPlacement(JSONObject attachmentData) { ^ symbol: class JSONObject location: class ColoredCoinsBidOrderPlacement src/java/nxt/Attachment.java:2295: error: cannot find symbol MonetarySystemPublishExchangeOffer(JSONObject attachmentData) { ^ symbol: class JSONObject location: class MonetarySystemPublishExchangeOffer src/java/nxt/Attachment.java:2337: error: cannot find symbol void putMyJSON(JSONObject attachment) { ^ symbol: class JSONObject location: class MonetarySystemPublishExchangeOffer src/java/nxt/BlockImpl.java:23: error: package org.json.simple does not exist import org.json.simple.JSONArray; ^ src/java/nxt/BlockImpl.java:24: error: package org.json.simple does not exist import org.json.simple.JSONObject; ^ src/java/nxt/TransactionImpl.java:717: error: cannot find symbol static TransactionImpl.BuilderImpl newTransactionBuilder(byte[] bytes, JSONObject prunableAttachments) throws NxtException.NotValidException { ^ symbol: class JSONObject location: class TransactionImpl src/java/nxt/TransactionImpl.java:749: error: cannot find symbol public JSONObject getJSONObject() { ^ symbol: class JSONObject location: class TransactionImpl src/java/nxt/TransactionImpl.java:780: error: cannot find symbol public JSONObject getPrunableAttachmentJSON() { ^ symbol: class JSONObject location: class TransactionImpl src/java/nxt/TransactionImpl.java:795: error: cannot find symbol static TransactionImpl parseTransaction(JSONObject transactionData) throws NxtException.NotValidException { ^ symbol: class JSONObject location: class TransactionImpl src/java/nxt/TransactionImpl.java:803: error: cannot find symbol static TransactionImpl.BuilderImpl newTransactionBuilder(JSONObject transactionData) throws NxtException.NotValidException { ^ symbol: class JSONObject location: class TransactionImpl src/java/nxt/PhasingParams.java:54: error: cannot find symbol PhasingParams(JSONObject attachmentData) { ^ symbol: class JSONObject location: class PhasingParams src/java/nxt/PhasingParams.java:97: error: cannot find symbol void putMyJSON(JSONObject json) { ^ symbol: class JSONObject location: class PhasingParams src/java/nxt/http/APIServlet.java:26: error: package org.json.simple does not exist import org.json.simple.JSONObject; ^ src/java/nxt/http/APIServlet.java:27: error: package org.json.simple does not exist import org.json.simple.JSONStreamAware; ^ src/java/nxt/http/APIServlet.java:29: error: package javax.servlet.http does not exist import javax.servlet.http.HttpServlet; ^ src/java/nxt/http/APIServlet.java:30: error: package javax.servlet.http does not exist import javax.servlet.http.HttpServletRequest; ^ src/java/nxt/http/APIServlet.java:31: error: package javax.servlet.http does not exist import javax.servlet.http.HttpServletResponse; ^ src/java/nxt/http/JSONResponses.java:23: error: package org.json.simple does not exist import org.json.simple.JSONObject; ^ src/java/nxt/http/JSONResponses.java:24: error: package org.json.simple does not exist import org.json.simple.JSONStreamAware; ^ src/java/nxt/http/APIServlet.java:52: error: cannot find symbol public final class APIServlet extends HttpServlet { ^ symbol: class HttpServlet src/java/nxt/Appendix.java:1110: error: cannot find symbol static PublicKeyAnnouncement parse(JSONObject attachmentData) { ^ symbol: class JSONObject location: class PublicKeyAnnouncement src/java/nxt/Appendix.java:1125: error: cannot find symbol private PublicKeyAnnouncement(JSONObject attachmentData) { ^ symbol: class JSONObject location: class PublicKeyAnnouncement src/java/nxt/Appendix.java:1150: error: cannot find symbol void putMyJSON(JSONObject json) { ^ symbol: class JSONObject location: class PublicKeyAnnouncement src/java/nxt/BlockImpl.java:248: error: cannot find symbol public JSONObject getJSONObject() { ^ symbol: class JSONObject location: class BlockImpl src/java/nxt/BlockImpl.java:267: error: cannot find symbol static BlockImpl parseBlock(JSONObject blockData) throws NxtException.NotValidException { ^ symbol: class JSONObject location: class BlockImpl src/java/nxt/http/APIServlet.java:184: error: cannot find symbol protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { ^ symbol: class HttpServletRequest location: class APIServlet src/java/nxt/http/APIServlet.java:184: error: cannot find symbol protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { ^ symbol: class HttpServletResponse location: class APIServlet src/java/nxt/http/APIServlet.java:189: error: cannot find symbol protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException { ^ symbol: class HttpServletRequest location: class APIServlet src/java/nxt/http/APIServlet.java:189: error: cannot find symbol protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException { ^ symbol: class HttpServletResponse location: class APIServlet src/java/nxt/http/APIServlet.java:193: error: cannot find symbol private void process(HttpServletRequest req, HttpServletResponse resp) throws IOException { ^ symbol: class HttpServletRequest location: class APIServlet src/java/nxt/http/APIServlet.java:193: error: cannot find symbol private void process(HttpServletRequest req, HttpServletResponse resp) throws IOException { ^ symbol: class HttpServletResponse location: class APIServlet src/java/nxt/http/JSONResponses.java:30: error: cannot find symbol public static final JSONStreamAware INCORRECT_ALIAS = incorrect("alias"); ^ symbol: class JSONStreamAware location: class JSONResponses src/java/nxt/http/JSONResponses.java:31: error: cannot find symbol public static final JSONStreamAware INCORRECT_ALIAS_OWNER = incorrect("alias", "(invalid alias owner)"); ^ symbol: class JSONStreamAware location: class JSONResponses src/java/nxt/http/JSONResponses.java:32: error: cannot find symbol public static final JSONStreamAware INCORRECT_ALIAS_LENGTH = incorrect("alias", "(length must be in [1.." + Constants.MAX_ALIAS_LENGTH + "] range)"); ^ symbol: class JSONStreamAware location: class JSONResponses src/java/nxt/http/JSONResponses.java:33: error: cannot find symbol public static final JSONStreamAware INCORRECT_ALIAS_NAME = incorrect("alias", "(must contain only digits and latin letters)"); ^ symbol: class JSONStreamAware location: class JSONResponses src/java/nxt/http/JSONResponses.java:34: error: cannot find symbol public static final JSONStreamAware INCORRECT_ALIAS_NOTFORSALE = incorrect("alias", "(alias is not for sale at the moment)"); ^ symbol: class JSONStreamAware location: class JSONResponses src/java/nxt/http/JSONResponses.java:35: error: cannot find symbol public static final JSONStreamAware INCORRECT_URI_LENGTH = incorrect("uri", "(length must be not longer than " + Constants.MAX_ALIAS_URI_LENGTH + " characters)"); ^ symbol: class JSONStreamAware location: class JSONResponses Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 100 errors baxtmann@nukacoin:~/Proof-of-Stake-Cryptocurrency-generator/NukaCoin$

baxtmann commented 3 years ago

@sandoche tagging dev

sandoche commented 3 years ago

Are you using wsl or cygwin?