Posts

java - Executing a jar with arguments, but it's not accepting argument whatever I give in ProcessBuilder method -

i executing .jar arguments have written below, it's executing jar , waiting arguments. i give arguments, it's not accepting , same method working fine other .jar execution many arguments i've tried. can problem? here code :- public static void main(string[] args) throws ioexception { // todo auto-generated method stub //bufferedreader br = null; system.out.println("starting"); processbuilder pb = new processbuilder("c:/java/jdk1.6.0_35/bin/java","-jar","c:/tcserver/tcclient/lib/tbrowser.jar","browser.1"); try{ process p = pb.start(); outputstream stdin = p.getoutputstream (); inputstream stderr = p.geterrorstream (); inputstream stdout = p.getinputstream (); inputstream = p.getinputstream(); inputstreamreader isr = new inputstreamreader(is); bufferedreader buff = new bufferedreader (isr); string line; while((line = buff.rea...

CodenameOne Image Slider using Image Viewer -

Image
is possible achieve similar attachment using imageviewer. have images loaded using defaultlistmodel similar screenshot part of next image shows user knows there next image , if possible slider @ bottom of screen. thanks most of people did used tabs widget more suitable sort of usage. can see discussion of here: https://groups.google.com/d/msg/codenameone-discussions/06hljmkia-4/4oi4wbamke0j

android - Dynamic layout and buttons in my existing layout after the image animation -

i trying load dynamic layout , buttons in existing layout after image animation. image has move center top of screen. after dynamic layout button visible below image. dynamic layout , button not visible. activity_main.xml <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/linearlayout1" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/bgm2" android:orientation="vertical" android:paddingbottom="@dimen/activity_vertical_margin" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingtop="@dimen/activity_vertical_margin" tools:context=".mainactivity" > <imageview android:id="@+id/imageview1" android:layout_width="250dp...

c# - Windows Forms & Actual Installer - Package being reported as malware -

we're building proof of concept windows application based on windows forms. we plan offer package beta testing small focus group whenever 1 tries download app our website google chrome / internet explorer report software may malware. i not actual desktop software developer, c# hobby , have no clue on how "sign" software legit. advice doing on daily basis? the following of code signing tools i've used far: signtool of microsoft digicertutility those code signing tools free , there lot of out there need buy digital certificate sign code or installer make software trusted. before can buy certificate verify few credentials or company because put in certificate trusted publisher.

ios - Assertion failure in MainViewController -

i trying insert records table in sqlite3 following code, code working fine ios 8 gives assertion error in ios 7.1.2. table creation: nslog(@"database path %@",self.databasepath); if ([manager copyitematpath:sourcepath topath:self.databasepath error:&error] == no) { nslog(@"error : %@", [error localizeddescription]); } // createstmt = nil; if (sqlite3_open([self.databasepath utf8string], &database) == sqlite_ok) { const char *sql_stmt = "create table if not exists categorytable (mainimg blob,addimg blob,cat_nm text,image_nm text,lastmodified text,cat_desc text,prod_id text,prod_nm text,prod_desc text,sku text,supplier_id text,supplier_phone text,product_dosage text,unit_size text,unit_price text)"; //nsstring *query=[nsstring stringwithformat:@"create table %@(rollno integer, name text)",tablename]; if (sqlite3_prepare_v2(database, sql_stmt, -1, &statement, null) != s...

caching - Symfony cache eclipse xDebug -

i have frustrating problem eclipse pdt. when debugging getting exceptions time(which should not there) suspect eclipse cached of files , reason why getting exceptions. sure code correct @ least eclipse throwing exceptions since when @ code in netbeans can step on without getting exceptions whatsoever. there's checkbox symfony in netbeans can ignore symfony cache , guess that's why able debug in there. eclipse , i'd use debuging , coding tool. p.s. have cleared symfony cached via cmd , tried again had no luck. i open suggestions that'd fix issue, thanks! p.s.2 using ecliplse luna , symfony 1.2 i know late, posting answer might still struggle issue. problem in case in debug view in eclipse have had variables not resolved in context when debugging (for example old variables have watched in other debug sessions). , when miscalculated eclipse's debugger had stopped responding. if have similar problem suggestion be: first clear previous variables debug...

Using Delphi to send email by web service (without leaking credentials and without user interaction) -

i have delphi application, needs send generated pdf file email 1 recepient of predefined list of recepients. i not want mess around mapi (not customers have configured this) i not want customers enter mail account details (this means smtp no option either) therefore consider use / setup paas web service receive email text, pdf file , index number of recepient work. question is: out-of-the-box solution exist in delphi, or preferable way? for instance considered using google app engine there seems no builtin support in delphi . prefer out of box solution or tested solution decent documentation. server part should simple possible. edited: clarifications: the resulting exe installed @ customer computer. think setting mail account therefore no option, because extract credentials exe , abuse mail account. same seems true web services provide 1 (login/password) access. using oauth2 seems no option either because want send email without user interaction. if credentials ne...